Closed khansalik closed 5 years ago
Hey there!
Are you sure that GLTFLoader is actually recieving the glTF file? Create React App is using webpack under the hood, so you probably need to use a loader to properly import your glTF file or use the public folder.
I'm closing this issue for now, since it doesn't seem to be directly related to three-gltf-loader
.
@khansalik did you found any fix, If yes please help!
The following error shows when trying to load glTF file in Three.js inside Create React App. The same files work fine outside the React environment. It would be really helpful to have any solution for this!
Here is my code snippet: