Not sure if you are still stuck on this, but I have run into the same issue. The problem is in how the file is being loaded. With Vue (or React for that matter) you will need to import the STL model as a Static file.
import demo from ‘…/models/demo.stl’;
1 Like
Hey @themanmaran, thanks for your post.
I think I’ve hit the same problem in Vue. Do you have any more code as an example of how you got this working? When I use your code snippet it looks for the stl file in the modules folder. How did you get around that?
@royksoft if this is just an issue properly loading static assets in Vue, you can check out this issue, it should get you on the right track Loading GLTF models in Nuxt.js / Vue.js
3 Likes