Open sangrepura opened 8 months ago
Same errors using the latest cli as well:
npx gltfjsx diana.gltf -t
/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Command: npx gltfjsx@6.2.16 diana.gltf -t
*/
I just ran the CLI version with --types
and can confirm that there are a bunch of errors for example:
(a)
TS2339: Property 'instanceMatrix' does not exist on type 'Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>'.
(b)
TS2304: Cannot find name 'GLTFAction'.
161 | PaletteMaterial001: THREE.MeshStandardMaterial
162 | }
> 163 | animations: GLTFAction[]
Would be great if someone can confirm if there's a currently known-working version that I can pin, and also get some test coverage on the typescript-generating code paths.
(b)
TS2304: Cannot find name 'GLTFAction'. 161 | PaletteMaterial001: THREE.MeshStandardMaterial 162 | } > 163 | animations: GLTFAction[]
should be fixed by https://github.com/pmndrs/gltfjsx/pull/260
Problem Description:
Code output by
https://gltf.pmnd.rs/
has numerous Typescript errorsScreenshot
Sample Code