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

JavaScript Build an Interactive Website Customizing Google Maps Fixing Info Windows and Google Maps

Chase Lester
Chase Lester
10,972 Points

Uncaught reference error: $ is not defined

So I have been adding google map to a site I am building with the help of the "build an interactive website" course. I have gone through most of the videos, and get to the end part on the video "fixing info windows and google maps" when loading the final site on a server I get the error "Uncaught reference error: $ is not defined. However I have the jquery file loaded correctly and it was working through the whole process. Any clue what I need to do to fix this?

The map loads, but the marker and addressed area does not. The map just loads to the default area

1 Answer

Chase Lester
Chase Lester
10,972 Points

I included the CDN and it worked. Any clue why? I downloaded the script from the jquery site and saved it as a file in the directory of my site. But after included the CDN it took the error away and the map loaded as wanted.