-
Notifications
You must be signed in to change notification settings - Fork 25.9k
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
Error after updated to version 9 #36060
Comments
Setting |
Are there no other errors? |
The same error repeats multiple time.
|
Can you post all of the versions of Angular packages that are installed, please. |
"dependencies": |
This topic has been discussed lots of times... |
Was it documented anywhere? I dont see anything in the ng 9 migration instructions |
@clement911 |
Is it recommended/safe to run |
Deleting |
Same problem for me. |
For everyone experiencing this issue even after deleting For folks that are using the CLI, would someone be able to share details or ideally a reproduction so that we can investigate? |
We use Angular CLI. |
@clement911 Oh, I see. That makes it a bit tricky to figure out why this wouldn't work, as it should all be wired up to work (especially for Is there any chance you can give more insight into your project? Can you share the full build output of a clean compilation, after removing the full I'm sorry about your upgrade experience being poor! |
Thanks @JoostK Any ideas? Also, I tried to build a minimal repro and I could get the issue to reproduce on a very minimal project. |
Oh, it being on Windows may be of relevance here. I have a suspicion of a caching issue, where the processed .d.ts files would maybe not be evicted in the CLI's file cache, perhaps because of file path issues. |
Although, that can't be the case if the issue persists across CLI builds 🤔 |
I'm attempting to prepare a minimal repro. |
Alternatively, could you archive the |
Here is the minimal-ish repro: https://github.com/clement911/ng9-error Regarding your last comment, I'm not sure what you mean by 'archive'? |
Create a zip and share it somewhere ;) |
@clement911 Bingo! I can reproduce (on OS X), although the initial |
I simplified it further, in case it helps. It's quite minimal now... |
If I delete package-lock.json before running
I updated |
I just had this issue when importing angular material radio. I just stopped the running console and try again with ng serve. |
So the issue here is definitely with the |
oh really? |
Also it works when we turn off ivy... |
working for me as well. |
Same situation for me when importing material slider. |
@petebacondarwin When I faced the issue I tried to restart several times and each time I got this error.
I tried to build the project but it's the same thing.
That's why I had to clear |
In my case stopping ng serve before adding the new package solved issue. Thanks a lot @petebacondarwin |
|
Hi, I have this issue as well on a new project i created a few days ago. I have a project I created about a month ago that does not have this problem. I notice some differences in behavior but cannot figure out the difference in environment or configuration that is pointing to the problem. I think if this can be identified it will help a lot to solving this issue since i have 2 projects in the same computer: one with the problem, one without. Both Angular 9 and relatively new. The month old project. I can run ng serve and add material modules and it compiles them fine. Als, in the imports, the intellisense is resolving all installed modules and i can pick from the list and it auto-imports (VS Code). The new project, none of that works: intellisense does not show the module unless the import is added first. There is no auto-import working. And, ng serve blows up with the Ivy error. So if I can figure out the difference between these 2 projects, It will probably point to the issue! I am a fairly new to angular so a bit raw on all the configuration files. Is there anything I can post that would help more experienced eyes? |
I got the same problem, I just noticed that I've imported |
@mhartington Thank you so much. That was it. I feel stupid now :) |
I got this in a brand new app
|
An unhandled exception occurred: NGCC failed. How to fix this issue ? |
@isakki - it is impossible to tell with so little information. Have you tried completely deleting the |
@mhmdtshref Good catch man, spent an hour troubleshooting that and the error got solved by actually importing the module. Who would have thought? 🙃 Thanks a lot! |
I started project through sudo yarn start and it was successfully and then stoped and again started without sudo and also ok. |
for me npm ci after re-installing packages compiled successfully. |
No it doesnt in my case |
Any update on the issue? I am facing the same issue
I tried setting I could import MatListModule but not MatTabGroup |
Ohhh man I had the same and couldn't solve it until I read this! :D |
Has anyone resolved this issue? All options above did not work for me |
This is my error:
|
So I turned ivy to false in my tsconfig.app.json, it seems to have skipped the errors I had above, but when compilling I get a new error. |
All these errors started when I upgraded to Angular 9. Am I using incompactible versions???
|
Check TypeScript version |
I started having a similar issue. Asked about it here on SO: https://stackoverflow.com/questions/63850751/angular-10-module-not-compiling |
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. |
Trying to update to version 9.
Cryptic errors and massive headache as usual 😱.
I'm stuck on this one:
What does it mean?
The text was updated successfully, but these errors were encountered: