pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.71k stars 310 forks source link

[BUG?] Cannot read property 'split' of undefined when importing parse from gltfjsx #96

Closed quacrobat closed 3 years ago

quacrobat commented 3 years ago

What is causing this error?

https://codesandbox.io/s/boring-haibt-d3d2c?file=/src/Model.js

drcmda commented 3 years ago

i dont understand what youre trying to do there it makes no sense to me. could you describe what you are after?

quacrobat commented 3 years ago

What I was trying to do isn't important I guess, I cleaned up the sandbox to show the bug. I may be missing something, but I get an error thrown anytime it tries to import { parse } from "@react-three/gltfjsx"; and before even trying to call parse on anything. https://codesandbox.io/s/boring-haibt-d3d2c?file=/src/index.js