Going foward we would like to have the 3d models placed somewhere in the “scr/Components/”.
While attempting to do it, I’m facing an error along these lines:
Uncaught (in promise) RuntimeError:
Unable to load from src/Components/modelName.babylon: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse
It’s definitely a React thing…
Have yet to find a solution so decide to drop this question here…
You just need to make sure to host the .babylon file in a public folder, right next to your images and other binary assets. not in the sources folder, but the public or static folder.
Just want to add - this very much depends on the packer you are using and how you serve your solution. I am glad you found a solution that fits your needs