-
DescriptionI can not use web component in Angular 9; I did everything that shows them there |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
We had a similar report in #969. Could you remix our Glitch to demonstrate the trouble, or point us to some other link that we can debug? |
Beta Was this translation helpful? Give feedback.
-
can you import this? import '@google/model-viewer/dist/model-viewer'; |
Beta Was this translation helpful? Give feedback.
-
import "@google/model-viewer" |
Beta Was this translation helpful? Give feedback.
-
As of Angular 14, both of these will import:
however, the second one (import '@google/model-viewer/dist/model-viewer';) will then fail with an error message: It's working for me with import "@google/model-viewer" after I also installed "@types/webxr" from npm |
Beta Was this translation helpful? Give feedback.
As of Angular 14, both of these will import:
however, the second one (import '@google/model-viewer/dist/model-viewer';) will then fail with an error message:
node_modules/@google/model-viewer/dist/model-viewer.d.ts:897:27 - error TS2749: 'MeshoptDecoder' refers to a value, but is being used as a type here.
It's working for me with import "@google/model-viewer" after I also installed "@types/webxr" from npm