简体   繁体   中英

Foundation JS Uncaught TypeError

I'm using Zurb Foundation, specifically the file foundation.min.js to power one of their navigation bars ( https://github.com/zurb/foundation )

It's already minified. When I smash it together with the rest of my minified javascript, I get an Uncaught TypeError in my console. I think it might be somehow conflicting with other scripts I have (Angular, among others)

So I was thinking it might be smart to somehow get an unminified version so it wouldn't conflict with the other code.

Any pointers here on what might be going on and how to fix it?

I am aware that this is an old question pertaining to an old version of foundation. Just in case this will be usefull to someone else: I was debugging an old site and the error in line 26 can be resolved if jQuery or Zepto is loaded before foundation.js oder foundation.min.js.

Simply put the link tags in your HTML in the appropriate order.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM