Menu icon Foundation
HELP!!! Javascript stops working after bower update from 5.1.1 to 5.2.1

Just updated from 5.1.1 to 5.2.1 via bower and my javascript stopped working. Don't know what to do. Is anyone having this issue? If a there is a fix, please let me know asap. thanks!

Updateupgrade5.1.15.2.1javascriptnotworkingbower

Just updated from 5.1.1 to 5.2.1 via bower and my javascript stopped working. Don't know what to do. Is anyone having this issue? If a there is a fix, please let me know asap. thanks!

This post has been closed. No new replies can be added.

Robert over 5 years ago

I had same issue. After spending few frustrating hours, I started new project from scratch and merged my changes.

Dontae Brodie over 5 years ago

Ok I'll give that a try. I've spent several hours on it too. I'll let you know how it goes. Thanks for your response!

Dontae Brodie over 5 years ago

Nope, still the same issue after starting new and merging.

Dontae Brodie over 5 years ago

Found out what the problem was after comparing the old bower_components folder with the new. The jquery.js file is in a folder called "dist" which was causing my link to break to the file. So instead of this in 5.1.1
HTML
<script src="bower_components/jquery/jquery.js"></script>

I had to change it to this with 5.2.1
HTML
<script src="bower_components/jquery/dist/jquery.js"></script>

```

Hope this helps someone else!

Dontae Brodie over 5 years ago

I meant "folder called dist" (damn spellcheck)