errors with angular 8 #2188
Replies: 15 comments
-
more info. Currently using @google/model-viewer": "^0.8.1"
angular.json "assets": [ AppComponent.html import '@google/model-viewer'; Package.json "dependencies": { "@google/model-viewer": "^0.8.1", |
Beta Was this translation helpful? Give feedback.
-
@anupamdas2012 I don't believe zone-evergreen.js is part of our project, so I'm guessing that error is originating elsewhere. As for camera-controls not working, did you remember to put the |
Beta Was this translation helpful? Give feedback.
-
@anupamdas2012 this sounds a little bit like it could be a Zone.js bug. Also, we don't do a lot of work with Angular ourselves. Perhaps you would be willing to make a minimal test case on Stackblitz or Glitch? The error reads to me as though Zone.js has patched an internal detail of |
Beta Was this translation helpful? Give feedback.
-
@cdata thanks for your detailed response. It is infact an issue with zone.js and the polyfills functionality in Angular however I have not been able to work around this. I will post a glitch test case for you to take a peek at. ps: im sort of a noob to Angular myself, and the polyfills stuff is a bit confusing to me. so bear with me. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I am also getting the exact same error posted above by @anupamdas2012 but am unable to replicate it on Stackblitz. Did you have any luck solving this @anupamdas2012 ? |
Beta Was this translation helpful? Give feedback.
-
This this perhaps a case of Stackblitz using a simplified Angular configuration? |
Beta Was this translation helpful? Give feedback.
-
I have similiar problem. I need to load model viewer dynamically from component logic (unfortunately this the case and I have to do this way)
Then I try to show it
Model viewer is rendered, but glitchy - only feet of astronaut are shown (rest is out of the picture) and I'm unable to use camera controls. Alse there is an error twice
I'm using Angular 8.2 |
Beta Was this translation helpful? Give feedback.
-
@maciejze thanks for the report. It seems plain that there is an issue related to Zone.js here. As mentioned above, we probably won't be able to investigate this bug until someone can produce a minimal test case that we can run ourselves to debug. If you or someone else can provide us with a test case that demonstrates the issue (maybe even just a minimal Angular project in a throw-away git repo), I would be happy to investigate this issue more deeply. |
Beta Was this translation helpful? Give feedback.
-
I'm running the same problem and I'm not using that Zone file... I just have Angular 8.2.14 and trying to load model-viewer 1.0.0 |
Beta Was this translation helpful? Give feedback.
-
Could you spin up a glitch (or stackblitz or even a little git repo) with a minimal repro for this? We need to be able to run & debug a project in order to dig into the issue. |
Beta Was this translation helpful? Give feedback.
-
i have created a stackblitz page related to this problem: and the related issue: |
Beta Was this translation helpful? Give feedback.
-
@idea-lei Thank you for the stackblitz! I believe I found the problem, but stranger yet, I can only seem to repro the problem in stackblitz. When I start from a fresh local Angular project and add model-viewer the same way you did, everything works fine. Can anyone else confirm or deny that a local angular project works? |
Beta Was this translation helpful? Give feedback.
-
@elalish i've had the problem locally (and exactly the same way), but I accidentally fixed it and it works well now... |
Beta Was this translation helpful? Give feedback.
-
Hi. I've commented (with details and code) how I solved this by upgrading Angular from v7 to v8 : Another guess could be that some exact zone.js (or any other dependency) version has something to do with it. So please keep an eye on your package.json and package-lock.json (both files should be in version control). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use this component in an angular 8 project and getting the following error:
zone-evergreen.js:651 Unhandled Promise rejection: this[$updateEvaluator] is not a function ; Zone: ; Task: null ; Value: TypeError: this[$updateEvaluator] is not a function
i have set up the project to be able to use google web-components and I do see a 3d model in my viewport but it seems certain features are not working like being able to orbit the model(camera-controls). here is how im using the component:
styles.scss
.mdlview2
{
height: 700px;
width: 500px;
background-color: powderblue;
}
Beta Was this translation helpful? Give feedback.
All reactions