question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find namespace 'GLTF' error

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ukito-plcommented, Oct 29, 2020

Thank you, typing issue is gone for good! 😃 Altough some new errors appeared during compilation in strict mode: errors.txt

0reactions
donmccurdycommented, Oct 29, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found