BABYLON.GUI is undefined-- .Bug in 'babylon.gui.js' module

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…!

Could you use for babylon.max.js as well ?

Currently you are using 3.3 for babylon and 4.0 for gui.

Now I am using gui 3.1 and it’s working fine…thanks I’ll also try to change the babyon.max.js…ok

Did it work?

Yes! it worked for me…