-
Notifications
You must be signed in to change notification settings - Fork 12k
Cannot read property 'ngMetadataName' of undefined with @angular-devkit/build-angular 0.800.4 #14888
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
Comments
I was just about to create the same ticket. I can confirm that our application was working with Angular CLI 8.0.3 and failed to load the SPA when upgrading to 8.0.4, as described above. We reverted to 8.0.3 and it works again. |
From @cexbrayat
|
I have the same issue after upgrading to Angular 8. Any idea? |
For me 2 things have worked:
.... |
@hegenj Thanks for your feedback. Downgrading cli to 8.0.3 also worked for us. |
This happens to me in the routes that I injected a service that injects the following:
The error occurred after updating to Angular 8. About workaround, I downgraded to 8.0.3 but still the same error. My package.json now :
It works fine with |
I've downgraded the angular stuffs as well. If is still not working, let
me know, and I'll send you my settings from package.json tomorrow morning.
Nicolae Olariu <[email protected]> ezt írta (időpont: 2019. jún.
25., Ke 17:54):
… @hegenj <https://github.com/hegenj> Thanks for your feedback. How did you
manage to downgrade to 8.0.3? I've tried any possible npm command but I'm
still stuck with 8.0.4 no matter what I do (even if I explicitly install
8.0.3 with npm install -g @***@***.***)...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14888?email_source=notifications&email_token=AMOKTWGLFAH5QUCWMLIM6B3P4I5R5A5CNFSM4H3F7QV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQWZPQ#issuecomment-505507006>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMOKTWGTV4HHAW2QQ6CVXSLP4I5R5ANCNFSM4H3F7QVQ>
.
|
@hegenj No, downgrading didn't work for me. Just serving as |
@hegenj Downgrading cli to 8.0.3 fixed our issue. Thanks a lot! |
@vadim-shb |
@hegenj Thank you, now it works fine. |
This might have been solved with #14891, can someone please try the nightly builds https://github.com/angular/angular-devkit-build-angular-builds and let us know? Otherwise, it would be great if someone could create a minimal reproduction. Thanks. |
Hi @alan-agius4 |
@alan-agius4 the tests are still wrong after change dependency to nightly build |
After upgrading
Reverting back to |
Thanks @vthinkxie for checking. |
this error was fixed by the nightly build after checking, but the test error still there |
Did you check my comment? |
for me to work i had to
|
same issue here +1 I have 2 projects created by cli 8.0.4 but only one works another one only works with --aot both of them work with cli 8.0.0 |
i have the same problem. i migrate from angular 7 to 8. |
0.800.6 suffer from the same issue. |
I've just upgraded to 8.0.6 (from 8.0.3 because I also got hit by the other 8.0.4 issue: #14891) and now I'm getting this issue instead: https://puu.sh/DLODB/932e7842ee.png Serving with This project has about 50 apps/libs under an nx umbrella. |
Same as @alfaproject |
I can confirm that it works for me with |
With these packages It works ONLY with ng serve --aot |
Using
|
I'm getting a different error |
In the recent versions of the CLI we introduced a ctor downleveler tranformer for VE JIT builds based on the one found in tsickle, to fix the TDZ issue of `forwardRef`. However this caused a regression as the injector is not handling that a position `paramType` can be undefined. Which is bubbled down to https://github.com/angular/angular/blob/c6b29f4c6d23b1510db3434cb030203d5bdea119/packages/core/src/di/injector_compatibility.ts#L162 and will crash https://github.com/angular/angular/blob/c6b29f4c6d23b1510db3434cb030203d5bdea119/packages/core/src/di/injector_compatibility.ts#L174-L186 Fixes angular/angular-cli#14888 PR Close #31333
After updating from 8.0.2, I'm getting an odd Circular dependency warning from Service -> Class -> Service, where Class is not an Injectable. I posted the issue here At the same time i have the runtime error: Might be connected to this. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was:
@angular-devkit/build-angular 0.800.3
Description
we met an error when update our lib ng-zorro-antd to the latest angular version.
All our ci goes wrong today, and found @Angular-devkit update to 0.800.4, and everthing is ok after locking it to
0.800.3
TypeError: Cannot read property 'ngMetadataName' of undefined
🔬 Minimal Reproduction
@angular-devkit/build-angular
to0.800.3
https://travis-ci.org/NG-ZORRO/ng-zorro-antd/jobs/550171528🔥 Exception or Error
The text was updated successfully, but these errors were encountered: