pmndrs / gltfjsx

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

cli tool results in error Objects are not valid as a React child #109

Open JakeJustLearning opened 3 years ago

JakeJustLearning commented 3 years ago

I am trying to use the CLI tool to render the basic jsx component of a .glb and a .gltf file. Regardless when I run the command it results in the following error

Warning: Encountered two children with the same key, in App. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version. in ink-box (created by Box) in Box (created by ErrorOverview) in ink-box (created by Box) in Box (created by ErrorOverview) in ErrorOverview (created by InternalApp) in InternalApp

JakeJustLearning commented 3 years ago

is GLTFX executing something within my app? i thought it was just building a file.

drcmda commented 3 years ago

gltfjsx is a react app that renders to the console. can you make sure that you dont gave it installed locally? wipe caches and try again with the npx command. if still no good, could you upload the file?

JakeJustLearning commented 3 years ago

I ran npm uninstall gltfjsx, but that did not solve the problem. not sure what you mean by wipe the caches. can you be more specific about what caches or what you mean? I will upload the file I am trying to convert folder containing gltf, and glb