Hi, I'm using Rails 6 on Heroku. dataTables not loaded properly. console throws error: Uncaught TypeError: Cannot read properties of undefined (reading 'defaults') In dataTables.bootstrap.js:43
Hello, sorry for the delay. This happens on demo? If you check online demo it's hosted on heroku and datatable is working fine.
As mentioned in this post, it seems to be that datatable is not available before its use https://stackoverflow.com/questions/26165263/datatables-uncaught-typeerror-cannot-read-property-defaults-of-undefined
Rails 6 on heroku, can't get dataTables to work
I'm using Rails 6 on Heroku.
dataTables not loaded properly.
console throws error: Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')
In dataTables.bootstrap.js:43
This happens on demo? If you check online demo it's hosted on heroku and datatable is working fine.
As mentioned in this post, it seems to be that datatable is not available before its use
https://stackoverflow.com/questions/26165263/datatables-uncaught-typeerror-cannot-read-property-defaults-of-undefined
Regards