Showing 1 – 1 of 1 replies
ogenav

Rails 6 on heroku, can't get dataTables to work

ogenav PURCHASED
1 year ago
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
themicon
themicon SELLER
1 year ago
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

Regards