I encountered an error when installing @ babylonjs/inspector while using nuxt3.js
[nuxt] [request error] [unhandled] [500] require() of ES Module D:\code\polybasic-project\nuxt_demo\nuxt3-test\node_modules@babylonjs\core\index.js from D:\code\polybasic-project\nuxt_demo\nuxt3-test\node_modules@babylonjs\inspector\dist\babylon.inspector.bundle.max.js not supported.
Instead change the require of index.js in D:\code\polybasic-project\nuxt_demo\nuxt3-test\node_modules@babylonjs\inspector\dist\babylon.inspector.bundle.max.js to a dynamic import() which is available in all CommonJS modules.
I tried to use dynamic import but it also got an error,Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘Debug’)
Hello and welcome!
Try to use dynamic imports as here (uncomment)
1 Like
It has been resolved, thank you
1 Like