Cannot find namespace 'GLTF' error
See original GitHub issueHi,
I installed @gltf-transform/core package in my typescript nest project with
npm i @gltf-transform/core
Then imported it in my ts file with:
import { NodeIO, Property, BufferUtils } from '@gltf-transform/core'
and I’m getting many errors like this:
node_modules/@gltf-transform/core/dist/io/reader-context.d.ts:14:36 - error TS2503: Cannot find namespace 'GLTF'.
It seems like typescript can’t locate this file https://github.com/donmccurdy/glTF-Transform/blob/master/typings/gltf.d.ts which is located outside of @gltf-transform/core package and is not downloaded during package installation.
How can I fix this issue?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
KhronosGroup/UnityGLTF - Gitter
I'm curious what @bghgary thinks about it. Ideally the GLTF folder would be split off into its own repository. However, we already have...
Read more >app.js:63 Uncaught ReferenceError: GLTFLoader is not defined
A code like const loader = new GLTFLoader(); only works if you import ... When doing so, GLTFLoader is no part of the...
Read more >NPM Support - Babylon.js Documentation
error TS2307 : Cannot find module 'babylonjs' (or other modules). Even though I use only a few classes from the BABYLON namespace, the...
Read more >Manual: Piglet glTF Importer 1.3.7 - Awesomesauce Labs
See Supported glTF Extensions for details about which extensions are currently supported. Piglet does not create humanoid avatar mappings (yet!)
Read more >There is no gltfloader in three module - Questions
Hi, I'm trying to load a gltf file by the three module, but I can't import ... GLTFLoader via ES6 import, you have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you, typing issue is gone for good! 😃 Altough some new errors appeared during compilation in strict mode: errors.txt
Glad to hear! It will take me a while to resolve the strict mode errors, I think, so I’ll track that work in https://github.com/donmccurdy/glTF-Transform/issues/120.