Uncaught TypeError: Cannot read property 'view' of undefined at eval

Bronze Contributor
Bronze Contributor

I see this error viewing one app developed with Vue in Chrome's incognito mode and another app built in Angular gets a similar error message. 

Any ideas why this might be happening?


Uncaught TypeError: Cannot read property 'view' of undefined at eval

Tealium Employee

Hello @jduanepierce 


Without the full error message it will be hard to give much of an accurate answer.

Judging by the fact you are asking here, im guessing the "view" property trying to be access here us the function utag.view(). which would suggest the utag object is currently undefined / not created.

If utag is generally running fine, and appears correctly in the console when you look for it, my guess would be that the webpage is trying to call the function before utag is ready, and this is where the error is coming from.


Alternatively, utag.js is not loading completely - likely becausee of a syntax error.


If I'm correct that utag.view() is the function being called here, i'd have a look and see whether this is a timing issue, or an issue with the actual file.


Happy to help some more if you can provide any additional information / screenshots.
Feel free to message me personally if you would like me to look at the site / account/profile directly!