I just tried to migrate my project from BabylonJS 3.2 to BabylonJS 4.0.
I used npm install @babylonjs/core to install the latest version of babylon and then imported the modules I needed and tried to build my project. Then I got the error below:
export * from “./abstractScene”;
ParseError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’
Warning: Error running grunt-browserify. Use --force to continue.
Does anyone know why do I get this error ?
Thank you in advance.