I'm getting this error when I'm trying to convert Wei to Ether using the code window.web3.utils.fromWei("200000",'ether'). This error shows only on the single page and when I console.log in the same window it shows the same error. But when I'm console.log in other windows it is working fine. Please find below screenshots for both.
I don't know what code you have for your "other windows", but the error:
Cannot read property 'x' of undefined
Tells you that in the expression
obj1.obj2.x, the value of
In your case, it means that
window.web3.utils === undefined.
So your first debug-step should be
console.log(JSON.stringify(window.web3, null, 4))...