Dear brothers, good evening everyone. I need to use the Babylon engine to render 3D models in the WeChat mini program. I use NPM to install the Babylon dependency, but allowing it to enter the WeChat mini program will result in an error:

Or, can Babylon be used in the environment of WeChat mini programs,I need your help, thank you very much
I assume you are not bundling your application, and are trying to import WHATEVER from "@babylonjs/core"
which in ES-world in the browser would mean - load core.js inthe current directory. You can set import maps (<script type="importmap"> - HTML: HyperText Markup Language | MDN) to define where to actually get the file, or if the files ARE there, try adding /index.js
or load directly from the modules you need.
1 Like