error in using Angularjs
See original GitHub issueAngularjs(Typescript) 内で使用すると以下のようなエラーが出ます。
ERROR in node_modules/@pixiv/three-vrm/types/vrm/VRM.d.ts(20,29): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/VRMImporter.d.ts(25,24): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/blendshape/VRMBlendShapeImporter.d.ts(4,24): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/debug/VRMDebug.d.ts(6,29): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/debug/VRMSpringBoneImporterDebug.d.ts(6,45): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/firstperson/VRMFirstPersonImporter.d.ts(5,24): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/humanoid/VRMHumanoidImporter.d.ts(4,24): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/lookat/VRMLookAtHead.d.ts(5,35): error TS1039: Initializers are not allowed in ambient contexts.
node_modules/@pixiv/three-vrm/types/vrm/lookat/VRMLookAtImporter.d.ts(9,24): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/material/VRMMaterialImporter.d.ts(11,38): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/material/VRMMaterialImporter.d.ts(12,100): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/springbone/VRMSpringBoneImporter.d.ts(5,24): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
node_modules/@pixiv/three-vrm/types/vrm/springbone/VRMSpringBoneImporter.d.ts(7,45): error TS2694: Namespace '"/node_modules/three/src/Three"' has no exported member 'GLTF'.
調べた限りですと、ライブラリ内で THREE.GLTF
を使用している場所があり、 Typescript内(@types/three
) ではこの部分が読み込めていないようです。
(もしかしたら、ライブラリ内のthree.jsのバージョンを上げれば直るかもしれないですが)
ここの部分の修正とかってお願いできますでしょうか?(すでに修正済みでしたらすみません。)
お願いします。
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Validation and Error Handling in AngularJS Applications
Everything you should know about validation and errors in AngularJS apps: good and bad practices, build-in and third-party tools.
Read more >ngMessages - AngularJS: API
ngMessages is a directive that is designed to show and hide messages based on the state of a key/value object that it listens...
Read more >How to show error messages in AngularJS? - Stack Overflow
$scope.errors = []; $scope.hasError = false; $scope.closeAlert = function (index) ...
Read more >TODO: Error Handling in AngularJS - TrackJS
AngularJS provides a service called $exceptionHandler . It handles errors by capturing them and logging them to the console using the $log service,...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
Common Mistake #5: Not Using Named Views With UI-ROUTER For Power”. The de facto routing solution for AngularJS has been, until now, the...
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 Free
Top 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
Push出来そうならPushしてしまいます…
@FMS-Cat こちらは新しい方のREADMEに準拠した実装をしていて、その状態で上記エラーが出ている状態です。