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
Angular 13 >=13.0.3 ng serve throws UnhandledPromiseRejectionWarning: Error: NGCC failed. #44369
Comments
For some reasons spawning NGCC is exiting with a non zero error code but an error is not thrown. |
@alan-agius4, is there a an easy way to get CLI to print the ngcc output? |
That is strange. So, does ngcc output nothing at all and it just fails? That would be unexpected. @jsanta, I'm afraid there is not much we can do without more info. Could you share an (ideally minimal) reproduction? |
It appears to be the same error. |
Thx, @jsanta! You can also try using the build artifacts from my fix PR (see here for instructions) to see if the problem goes away. |
@jsanta Could you please try with 13.1.0? |
@JoostK sorry for my late reply. |
@jsanta sorry for late reply |
After hours of unsuccessful attempts to find out which dependency was causing the issue, this little trick helped me find out in 5 minutes. As a note to others struggling with this, the chunk file where the following code resides was named differently, so make sure you look through all of them. |
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?
It seems to be a regression as when we first updated our project to Angular 13, it didn't happen.
FIxed all @angular/* versions to 13.0.2 and stopped getting the error.
Tried it myself and with a couple of coworkers. Same problem.
Description
🔬 Minimal Reproduction
NX monorepo once working with Angular 12 migrated to Angular 13, package.json installed version 13.0.1.
Recently had to delete the node_modules and npm install again. npm installed version 13.0.3
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: