Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
gbcode
2,220 PointsReally weird issues after upgrading to jQuery 3, Migration tool says nothing
Hello everyone, hope you're having a great day!
I've got some really odd and random issues after updating from jQuery 1.1.24 to 3.1.1 with a template(Spectral from HTML5UP). Most of the time you load the page, the banner DIV won't render until you've refreshed(sometimes it won't even render after that). The menu animation also behaves really weird.. Sometimes it animates, but most of the times it doesn't(and sometimes you can't even click it). I've tried running jQuery Migration 1 and 3 without any errors in the console. I've also tried updating as many libraries that were bundled as I can..
Any idea what's going on here?
3 Answers
Dave McFarland
Treehouse TeacherHi gbcode
jQuery fails "silently" most of the time — that means it often won't raise an error to the console when it can't complete what it's asked to do. That probably indicates a problem with the JavaScript/jQuery code that ships with the Spectral template. There could be dozens of reasons for this. Your best bet is to reach out to the creator of the template and see if they plan on releasing a version that supports jQuery 3. If they have a GitHub repository for the template, you could also submit a GitHub issue to report this as a bug. You can learn how to submit a GitHub issue here: https://help.github.com/articles/creating-an-issue/
Dave McFarland
Treehouse TeacherHi gbcode
Off the top of my head, I'm not sure what's going wrong here. Do you have this code somewhere that you can share so we can look at it? Are you not seeing ANY JavaScript errors in the console?
gbcode
2,220 PointsHello Dave McFarland
Sorry for the confusion! The code I'm having issues with is when I update the templates jQuery version to 3.0.
Is there any site you'd recommend uploading the code to for demonstration?
EDIT: Forgot to add that I see NO errors in the console at all.
Thanks!
gbcode
2,220 Pointsgbcode
2,220 PointsAh I see, oh well. I'll try reaching out to creator, thanks for the help!