Three.js: [BUG] TS2339: Property 'nodes' does not exist on type 'GLTF'.

Created on 7 Oct 2020  路  4Comments  路  Source: mrdoob/three.js

"three": "^0.121.1",

export interface GLTF {
    animations: AnimationClip[];
    scene: Group;
    scenes: Group[];
    cameras: Camera[];
    asset: {
        copyright?: string;
        generator?: string;
        version?: string;
        minVersion?: string;
        extensions?: any;
        extras?: any;
    };
    parser: GLTFParser;
    userData: any;
}

But nodes exists:

image

All 4 comments

What is TS2339?

@mrdoob its TypeScript error code, to classify errors.
In real object i get nodes prop, but in type declaration i dont.
It is error of type definition for typescript?

I've tested a few example (like https://threejs.org/examples/webgl_loader_gltf) but I don't see nodes in the gltf object 馃 .

Closing this. Please, follow the issue template when reporting bugs.

Screen Shot 2020-10-07 at 11 55 24 AM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Horray picture Horray  路  3Comments

filharvey picture filharvey  路  3Comments

Bandit picture Bandit  路  3Comments

ghost picture ghost  路  3Comments

yqrashawn picture yqrashawn  路  3Comments