-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error TS2307: Cannot find module 'babylonjs-gltf2interface/.js' or its corresponding type declarations. #12330
Comments
This has been fixed and should be all good in 5.0.3 |
Actually I can confirm the issue since 5.0.1 https://forum.babylonjs.com/t/error-with-gltf-loader-module-in-recent-5-0-1-releases/29016/3 |
Validating and fixing, thanks for reporting |
5.0.3 was just released and should be fine. Closing this bug, please reopen if there is any issue with it. |
Same error:
package.json {
"dependencies": {
"@angular/animations": "~13.2.0",
"@angular/cdk": "^13.3.9",
"@angular/common": "~13.2.0",
"@angular/compiler": "~13.2.0",
"@angular/core": "~13.2.0",
"@angular/forms": "~13.2.0",
"@angular/platform-browser": "~13.2.0",
"@angular/platform-browser-dynamic": "~13.2.0",
"@angular/router": "~13.2.0",
"@ngneat/until-destroy": "^9.0.0",
"body-scroll-lock": "^4.0.0-beta.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"typed.js": "^2.0.12",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.2.3",
"@angular/cli": "~13.2.3",
"@angular/compiler-cli": "~13.2.0",
"@babylonjs/core": "^5.14.1",
"@babylonjs/loaders": "^5.14.1",
"@types/body-scroll-lock": "^3.1.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.1.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"local-web-server": "^5.1.1",
"typescript": "~4.5.2"
}
} Error when Manual installation |
Not the same error at all, this is because of a change we have made to peer-dependencies (vs. regular dependencies). |
Use Github issues ONLY for validated bugs. PLEASE DISCUSS THEM ON THE FORUM FIRST!
We have a really active forum to help answering questions (https://forum.babylonjs.com/)
Repro
it's suffix by "/.js" ,so error TS2307:Cannot find module 'babylonjs-gltf2interface/.js' or its corresponding type declarations.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
when i install 5.0.0-rc.13, this is file node_modules/@babylonjs/loaders/glTF/2.0/glTFLoader.d.ts:11:32
is right, import type * as GLTF2 from "babylonjs-gltf2interface";
The text was updated successfully, but these errors were encountered: