This is an old thread, but I also got the issue right now. I am just getting started with Javascript, so I don’t know if this is an actual issue or just the result of my lacking experience.
It seems to work fine in a vanilla) node js script.
I am trying to use rhino3dm in combination with Vue.JS, but keep getting the wasm error.
Steps to reproduce the error with a new vue project:
- New vue CLI project (command vue-create)
- Install rhino3dm (command npm install rhino3dm)
- Add sample code for loading rhino3dm from https://github.com/mcneel/rhino3dm/blob/master/docs/javascript/RHINO3DM.JS.md, for example as seen in this screenshot
I added it to the mounted method in the App.vue file
- Run the project (command npm run serve)
I attached the example project for replicating the error.
Thank you for your help.
Attachment: