Forum Moderators: open

Message Too Old, No Replies

jQuery - Uncaught SyntaxError: Unexpected Identifier

         

csdude55

11:01 am on Feb 18, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



After moving a ton of data to an external JavaScript file, I'm getting this rather vague error in my Chrome Developer Tool:

Uncaught SyntaxError: Unexpected Identifier
VM2562:1

Uncaught SyntaxError: Unexpected Identifier
VM2564:1

It points to http://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js as the problem, but that's obviously not the real issue; it's something within my script that calls the framework.

Any suggestions on how to narrow the problem down a little further? I don't suppose "VM2562:1" is code for something?

Fotiman

3:52 pm on Feb 18, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can configure Chrome developer tools to "Pause on exceptions". If you configure that, then look at the Call Stack to see which line of code might be causing the problem.

Optionally, you could try loading the unminified version of jQuery to see what that code is doing, but it's unlikely that the jQuery code is the cause of the problem.