My Babylon.js scene was working finely yesterday…but today it showing me following errors.
fluentMaterial.ts:315 Uncaught TypeError: Cannot read property ‘RegisteredTypes’ of undefined
at Module…/3D/materials/fluentMaterial.ts (fluentMaterial.ts:315)
at webpack_require (bootstrap:19)
at Module…/3D/controls/holographicButton.ts (cylinderPanel.ts:67)
at webpack_require (bootstrap:19)
at Module…/3D/controls/index.ts (index.ts:1)
at webpack_require (bootstrap:19)
at Module…/3D/index.ts (index.ts:1)
at webpack_require (bootstrap:19)
at Module…/index.ts (index.ts:1)
at webpack_require (bootstrap:19)
TypeError: BABYLON.GUI is undefined
I definitely tell that this error is due to babylon.gui.js file.
I have imported the scripts in following manner.
and I used it to create gui as:
var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”);
Please help me with this…how can I resolve the error and get my scene working smoothly…??
Thanks if you can help me…!