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.

error in using Angularjs

See original GitHub issue

Angularjs(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:closed
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nottakiscommented, Dec 28, 2019

Push出来そうならPushしてしまいます… Screen Shot 2019-12-28 at 22 04 35

1reaction
TakuKobayashicommented, Sep 18, 2019

@FMS-Cat こちらは新しい方のREADMEに準拠した実装をしていて、その状態で上記エラーが出ている状態です。

Read more comments on GitHub >

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

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