Reputation: 572
I'm at my wit's end with this.. for some reason my angular errors always show up cryptic like so:
I can usually figure out the problem but in general I'm looking to see if anyone has any input on how to get the nice error messages that angular supposedly shows that I've never seen before where it has a link to the site with more information as well as more verbose error details.
Any help would be appreciated. Please feel free to leave a comment pointing me in the direction of obtaining more information as I'm not quite sure what to look for with respect to this problem.
It's also worth noting that I get the same "Uncaught Object" message in my dev console for chrome. I'm sorry I don't have more info but if it's worth anything I was expecting an error along the lines of:
which is referenced by the line number.
Upvotes: 1
Views: 57
Reputation: 18193
Is your IDE using Chrome as the underlying browser?
Chrome has annoyingly started doing this to long error messages. See this github issue and in the Angular project, as well as this blog post for some details.
So whenever I see "Uncaught Error" in Chrome, I switch to Firefox to see the actual error message.
Another solution is to switch to the bleeding edge version of Chrome, Chrome Canary, and then make your IDE use that.
Upvotes: 1