How to resolve Uncaught ReferenceError:utag is not defined?

2.5k Views Asked by At

I'm getting Uncaught ReferenceError:utag is not defined

The error:

Uncaught ReferenceError: utag is not defined
at HTMLSelectElement.eval (eval at jsf.util.chain(jsf.js.html?=ln=javax.faces:1), anonymous:<3:1>)
at Object.jsf.util.chain (jsf.js.html?=ln=javax.faces:1)
at HTMLSelectElement.onChange (xyz.html:123)

This is a bit weird scenario. Two weeks ago I was working on a source code and it was working fine for 2 days but suddenly started throwing the above error on Chrome. So I switched to IE and on IE it was working fine for some time before throwing the same error on IE also. I couldn't resolve that error that time and moved on to another priority task. Yesterday I took a completely different source code and started working on Chrome. It was working fine for sometime and again I got the same error on Chrome. Like last time started working on IE. Now IE also throwing the same error. I don't understand why I'm getting this error after working for sometime. I cleared cache and restarted the system and done building the code multiple times.

I do believe this is a problem with either browser or eclipse. Kindly guide me.

The code looks somewhat similar to this, <commandLink id="abc" onclick="utag.link({url link})" />

NOTE: This code working completely fine for my colleagues.

2

There are 2 best solutions below

3
amin be On

May be tealium tracking scripts blocked by uBlock or similar extension ...

0
Carlos Martínez On

In my case I wanted to play a game but the console says same as you "utag is not defined" so I read the js code and I just paste this in the console very quickly before game start loading

const utag = {}
utag.link = ()=>{}

then press enter and works very good. This is the website I was playing the game https://plays.org/game/low-down/