I am upgrading my Angular project from version 10.2.x to version 11. As per official angular update guide, when I run the command: -
ng update @angular/core@11 @angular/cli@11 --allow-dirty --force
it throws following error:
Error: Error on worker #1: Error: Debug Failure. Unhandled SyntaxKind: Unknown.
at pipelineEmitWithHintWorker (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:113127:22)
at pipelineEmitWithHint (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:112660:17)
at pipelineEmitWithComments (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:116301:13)
at pipelineEmit (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:112600:13)
at emit (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:112573:13)
at emitParameter (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:113364:13)
at pipelineEmitWithHintWorker (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:112709:32)
at pipelineEmitWithHint (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:112660:17)
at pipelineEmitWithComments (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:116301:13)
at pipelineEmit (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\typescript\lib\typescript.js:112600:13)
at ClusterMaster.onWorkerMessage (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:195:27)
at C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:55:95
at ClusterMaster. (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:293:57)
at step (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\tslib\tslib.js:140:27)
at Object.next (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\tslib\tslib.js:121:57)
at C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\tslib\tslib.js:114:75
at new Promise ()
at Object.__awaiter (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\tslib\tslib.js:110:16)
at EventEmitter. (C:\Reach code\Reach\Angular Upgrade\helix-responsive-app-FOR v11 NEW\reach-app\node_modules\@angular\compiler-cli\ngcc\src\execution\cluster\master.js:287:32)
at EventEmitter.emit (events.js:315:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reach-app@0.0.1 postinstall: ngcc
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reach-app@0.0.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rituraj.kandiyal\AppData\Roaming\npm-cache_logs\2022-09-30T13_19_55_670Z-debug.log
× Packages installation failed, see above.
My package.json file looks like below after running the above update command: -
The command did upgrade required dependencies to version 11 but threw error too. I tried looking for a solution on internet, but didn't find much. After this when I run the mentioned command to upgrade angular-material, I see the version upgraded but also the same error again.
I am upgrading my Angular project from version 10.2.x to version 11. As per official angular update guide, when I run the command: -
it throws following error:
My package.json file looks like below after running the above update command: -
The command did upgrade required dependencies to version 11 but threw error too. I tried looking for a solution on internet, but didn't find much. After this when I run the mentioned command to upgrade angular-material, I see the version upgraded but also the same error again.
bug #angular