I'm currently working on a project in parcel that involves three.js. It appears that I am having trouble loading a 3D model due to an incorrect path issue.
My model is located in src/assets/models/mymodel.obj and I am attempting to use it within the obj loader, but unfortunately, this relative path is not functioning correctly.
I have also attempted to add a static folder in the build in an effort to reference it, however, this approach has not worked either.
Another strategy I tried was creating a specific URL with: new URL('model.obj', import.meta.url)
Despite this, the issue persists and the model is still not loading properly.
Any guidance or tips on how to resolve this issue would be greatly appreciated.
Thank you in advance for your assistance.