We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property 'geometry' does not exist on type 'Object3D i use nexjs 14 typescript . not vite js
The text was updated successfully, but these errors were encountered:
i creat another on with js not ts and its work
Sorry, something went wrong.
In typescript, you should create a type for GLTF result and assign it to useGLTF hooks.
Create an interface or a type. interface GLTFResult extends GLTF { nodes: { T_Shirt_male: THREE.SkinnedMesh } materials: { lambert1: THREE.MeshStandardMaterial } }
interface GLTFResult extends GLTF { nodes: { T_Shirt_male: THREE.SkinnedMesh } materials: { lambert1: THREE.MeshStandardMaterial } }
Assign the type to the hooks. const { nodes, materials } = useGLTF("/shirt_baked.glb") as GLTFResult
const { nodes, materials } = useGLTF("/shirt_baked.glb") as GLTFResult
No branches or pull requests
Property 'geometry' does not exist on type 'Object3D
i use nexjs 14 typescript . not vite js
The text was updated successfully, but these errors were encountered: