Starting this afternoon all BabylonJS apps that have this line wouldn’t work:
advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”);
HELP!
Here is the console log
babylon.gui.min.js:16 Uncaught TypeError: Cannot read properties of undefined (reading ‘RegisteredTypes’)
at Module. (babylon.gui.min.js:16)
at i (babylon.gui.min.js:1)
at Module. (babylon.gui.min.js:16)
at Module. (babylon.gui.min.js:16)
at i (babylon.gui.min.js:1)
at babylon.gui.min.js:1
at babylon.gui.min.js:1
at babylon.gui.min.js:1
at babylon.gui.min.js:1
(anonymous) @ babylon.gui.min.js:16
i @ babylon.gui.min.js:1
(anonymous) @ babylon.gui.min.js:16
(anonymous) @ babylon.gui.min.js:16
i @ babylon.gui.min.js:1
(anonymous) @ babylon.gui.min.js:1
(anonymous) @ babylon.gui.min.js:1
(anonymous) @ babylon.gui.min.js:1
(anonymous) @ babylon.gui.min.js:1
babylon.js:16 Babylon.js v5.0.0-alpha.48 - WebGL2
fca687e8:1828 Uncaught TypeError: Cannot read properties of undefined (reading ‘AdvancedDynamicTexture’)
at createScene (fca687e8:1828)
at selectpiano (fca687e8:2459)
at fca687e8:2469
Doesn’t work after clearing cache. It must be something in BabylonJS side, because I didn’t change the code, and it had worked for months before!!! Just this afternoon, this basic function doesn’t work.
[Log] Babylon.js v5.0.0-alpha.48 - WebGL2 - Parallel shader compilation (babylon.js, line 16)
[Error] TypeError: undefined is not an object (evaluating ‘BABYLON.GUI.AdvancedDynamicTexture’)
Bad news. It’s still not working. Before there is no assigned var advancedTexture; But I guess that wasn’t the problem. Even after var advancedTexture I get the same error:
TypeError: undefined is not an object (evaluating ‘BABYLON.GUI.AdvancedDynamicTexture’)
@msDestiny14 I grabbed one of the earlier deployed code that worked in the past and tried it… also had the same error. I think this is the BabylonJS/browser side issue… Maybe somehow the updated browsers didn’t like something inside the GUI module.
Also since you’re using it in production, it’s good to consider that changes to the linked code could cause your product to stop working. There’s a way to link to a specific version I think but I can’t remember or find how to do it RN (that way you can use the latest version that you’ve tested on).