Please help.... I'm struggling to get any external JS to work in 6.4.2 and it is absolutely driving me crazy, I have a project to complete!!
I am trying to install foundation date-picker. I have followed various instructions from threads on this forum such as this on how to load modules with webpack but nothing is working. I have even tried a CDN for the datepicker and even another jQuery datepicker.
When loading the foundation date-picker via CDN, I get this error:
Uncaught TypeError: Cannot read property 'fn' of undefined
The nearest I've got is including the jQuery CDN in the default template and it throws no errors, however the datepicker doesn't work. When trying this datepicker via CDN, it tells me jQuery is not defined.
I know it's something to do with the order of things loading, but can't figure it out. This plugin worked perfectly in 6.3 and I'm really struggling with this new version of Foundation, it's surely supposed to make things easier, instead I've wasted so much time figuring it out.
Docs are not helping much, the links to threads of module exporting and webpack didn't make sense. Seems like I'm not the only one having these issues.
Any help would be greatly appreciated. Thanks for the good work