ngcc process fails with vscode versions 1.62.1 and above
See original GitHub issueπ bug report
Is this a regression?
Yes, I am currently on v13.0.0, I don't remember when it started throwing this error.Description
A clear and concise description of the problem...Iβm getting a popup everytime tsconfig.json changes and angular language service starts. Happening in multiple Angular v12 repos
Bug Type
What does this bug affect
- Angular Language Service VSCode extension
- Angular Language Service server
Reproduction
Steps to reproduce the behavior:
- Go to ββ¦β
- Click on ββ¦β
- Scroll down to ββ¦β
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Logs
Log file gives us deep insight into the behavior and performance of the extension. If the issue is a performance problem or an error occured, please provide the output of the log file below.
Set Angular Log level to verbose.
[Trace - 9:44:04 AM] Sending notification 'workspace/didChangeWatchedFiles'.
[Trace - 9:44:04 AM] Received notification 'angular/projectLoadingFinish'.
[Trace - 9:44:04 AM] Received notification '$/progress'.
[Trace - 9:44:05 AM] Received notification 'window/logMessage'.
[Error - 9:44:05 AM] Failed to run ngcc for /Users/joey/Repos/battleface-v2/tsconfig.json, language service may not operate correctly:
ngcc for /Users/joey/Repos/battleface-v2/tsconfig.json returned exit code null, stderr:
[Trace - 9:44:05 AM] Received notification '$/progress'.
[Trace - 9:44:05 AM] Received notification 'window/logMessage'.
[Info - 9:44:05 AM] Enabling Ivy language service for /Users/joey/Repos/battleface-v2/tsconfig.json.
Screenshots
π Your Environment
Angular Version:
12.2.7
Extension Version:
v13.0.0
VSCode Version:
Version: 1.62.1 (Universal)
Operating System:
macOS 11.6
Anything else relevant?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:10
Top Results From Across the Web
Angular 9 - NGCC fails with an unhandled exception
This error may be because two or more entry-points overlap and ngcc has been asked to process some files more than once. You...
Read more >Troubleshoot Terminal launch failures - Visual Studio Code
Below are specific troubleshooting steps, if the user guide hasn't helped you diagnose the launch failure. The troubleshooting steps, such as checking yourΒ ......
Read more >error: failed to initialize angular compilation - ngcc failed.
This appears to be an issue with Typescript version >4.9.0. I haven't worked out what that is yet, but a possible workaround is...
Read more >Angular Language Service is not Working? | by Georgi Parlakov
We need to make sure VS Code does not auto β update the extension version as it does, so we put βextensions.autoUpdateβ: false...
Read more >Visual Studio Code 1.74.2 - Chocolatey Software
install" directly, since this is the package that is consistently failing. Running this by itself still fails with the same details as above,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, I have been able to isolate this to the vscode
1.62.1
release. The error does not occur in the1.62.0
release. When updating to1.62.1
with no other changes, thengcc
process fails.We are still actively investigating this issue and are tracking https://github.com/microsoft/vscode/issues/136988 as the likely resolution.
In the meantime, the error we show does give the appropriate information.
ngcc
failed to run, which might cause the language service to not work correctly but can be resolved bynpm/yarn run ngcc
. Or if you are already running a dev server,ngcc
likely already ran and you donβt have to do anything.