Does anyone have any idea how to resolve this error?
The google devt tools does not pinpoint the location of the erroneous code which makes it hard to troubleshoot.
Im currently on Meteor and MongoDB. Ive searched for Unexpected tokens, theres A, N, C but M is not common.
What Ive read is it might be a server commenting problem as it adds random letters and non-recognizable scripts.
Any suggestions?
I've got the exact same problem, and it's happening at line 1472 in ng-inspector.js at JSON.parse(eventData);
The reason is presumably that event.data is holding some kind of setImmediate string (which begins with the letter 'M') - "Meteor._setImmediate.0.5014774943701923.5"
Here are the five lines in ng-inspector.js leading up to the JSON.parse():
window.addEventListener('message', function (event) {
// Ensure the message was sent by this origin
if (event.origin !== window.location.origin) return;
var eventData = event.data;
if (!eventData || typeof eventData !== 'string') return;
eventData = JSON.parse(eventData);
the debugger shows this stuff in the event object:
event = MessageEvent {data: "Meteor._setImmediate.0.5014774943701923.5", origin: "http://localhost:3000", lastEventId: "", source: Window, ports:
ng-inspector.js is an angular extension for Chrome so I guess all we have to do is uninstall it now that we are using Meteor!
Yes, I can confirm that I have uninstalled the Angular inspector from the Chrome extensions and that the problem is solved.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments