I’m new in BabylonJS, and following the tutorial I got this error in the console:
Error: Build failed with 5 errors:
node_modules/@babylonjs/inspector/dist/babylon.inspector.bundle.max.js:3:63: ERROR: Could not resolve "@babylonjs/materials"
node_modules/@babylonjs/inspector/dist/babylon.inspector.bundle.max.js:3:124: ERROR: Could not resolve "@babylonjs/gui"
node_modules/@babylonjs/inspector/dist/babylon.inspector.bundle.max.js:3:151: ERROR: Could not resolve "@babylonjs/gui-editor"
node_modules/@babylonjs/inspector/dist/babylon.inspector.bundle.max.js:3:185: ERROR: Could not resolve "@babylonjs/loaders"
node_modules/@babylonjs/inspector/dist/babylon.inspector.bundle.max.js:3:216: ERROR: Could not resolve "@babylonjs/serializers"
when I remove import "@babylonjs/inspector";
from the code, the error doesn’t happen again.
Here are my dependencies:
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5"
},
"dependencies": {
"babylonjs": "^6.20.1",
"@babylonjs/core": "^6.20.1",
"@babylonjs/inspector": "^6.20.1"
}
What am I doing wrong?