I have strange issue with a small project I’m working on. I’m using webpack to bundle up my code when I try to run my build on the browser I get this error:
babylonjs__WEBPACK_IMPORTED_MODULE_0__.TerrainMaterial is not a constructor
I installed the babylonjs-materials package from npm and I’m importing it in my file, however the error persists. Any ideas as to what could be causing this issue? I’m fairly new to webpack it’s possible I’m doing something wrong there but any help would be greatly appreciated.