While I was creating a theme for WordPress and reached the menu editing I see the menu doesn't work, so after checking the console log, I notice that foundation.min.js
have an issue with Unexpected end of script
What can cause this type of error:
Unexpected end of script
I read where it say because your missing a });
ending, but that is not my case, since i re-upload the foundation.min.js
This problem is interfering with another aspect of foundation as well, here are the other error also come up in the console log.
ReferenceError: Can't find variable: Foundation
TypeError: undefined is not a function (evaluating 'jQuery(document).foundation()')
This problem also started when I start using Cloudfront by AWS (but I doubt this can be the problem)
Image of the errors:
Foundation 5 Line of Error Image: