Open berkanioussama opened 11 months ago
i creat another on with js not ts and its work
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 } }
Assign the type to the hooks.
const { nodes, materials } = useGLTF("/shirt_baked.glb") as GLTFResult
Property 'geometry' does not exist on type 'Object3D
i use nexjs 14 typescript . not vite js