An error happened: Cannot find module 'D:/BabylonJS/1/build/src/scenes/tools.js'

Hi Everyone, I am new to Babylon.js!
I am facing this error while launching any project from the Babylon Editor 4.3. Can someone help? I am attempting to make 3d visualization web apps. Thanks in advance!
ERROR-
An error happened: Cannot find module ‘D:/BabylonJS/1/build/src/scenes/tools.js’ Require stack: - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/play/inline-play.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/components/preview.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/assets/materials.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/scene/utils.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/editor.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/index.js - C:\Users\USER\AppData\Local\Programs\BabylonJS Editor\resources\app.asar\html\editor.html

Error: Cannot find module ‘D:/BabylonJS/1/build/src/scenes/tools.js’ Require stack: - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/play/inline-play.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/components/preview.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/assets/materials.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/scene/utils.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/editor.js - C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/editor/index.js - C:\Users\USER\AppData\Local\Programs\BabylonJS Editor\resources\app.asar\html\editor.html at Module._resolveFilename (internal/modules/cjs/loader.js:972:15) at o._resolveFilename (electron/js2c/renderer_init.js:35:917) at Function.Module._resolveFilename (C:\Users\USER\AppData\Local\Programs\BabylonJS Editor\resources\app.asar\build\src\renderer\module.js:91:12) at Module._load (internal/modules/cjs/loader.js:848:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12633) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at ScenePlayer. (C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/play/inline-play.js:97:38) at step (C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/play/inline-play.js:33:23) at Object.next (C:/Users/USER/AppData/Local/Programs/BabylonJS Editor/resources/app.asar/build/src/renderer/play/inline-play.js:14:53)

Will my system specs help?

Memory: 8 GB
Processor: Intel(R) Core™ i7-7700HQ CPU @ 2.80GHz[Cores 4] [Logical processors 8]
Operating System: Microsoft Windows 10 Home Single Language
GPU0-Intel HD Graphics 630
GPU1-Nvidia Geforce GTX 1050 4gb Vram
It’s not the best, but it is fine for my work.

Can you help me @julien-moreau?
I have only Babylon.js editor 4.3 installed, but I have no idea about any dependencies.

looks like your file inline-play.js is requiring tools.js from scene ? but this file would be in misc

Thanks for replying @sebavan! I did not know that Babylon.js required Node.js and the dependencies. The problem was solved when I installed windows build tools with node.js using npm and then installed the dependencies by npm in the project directory. I guess I was at fault… Thanks for replying!

2 Likes

@NeiTekniks How did you solve the issue ?