Compiling angular-tree-component : module as esm5
Error: Error on worker #2: TypeError: Cannot read property 'injectorImports' of undefined
at NgModuleDecoratorHandler.compile (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/src/ngtsc/annotations/src/ng_module.js:347:174)
at _loop_1 (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:206:38)
at DecorationAnalyzer.compileClass (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:221:21)
at /Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:195:41
at Array.map (<anonymous>)
at DecorationAnalyzer.compileFile (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:194:64)
at /Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:134:90
at Array.map (<anonymous>)
at DecorationAnalyzer.analyzeProgram (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/analysis/decoration_analyzer.js:134:47)
at Transformer.analyzeProgram (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/packages/transformer.js:123:57)
at ClusterMaster.onWorkerMessage (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:158:27)
at /Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:46:95
at ClusterMaster.<anonymous> (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:238:57)
at step (/Users/wuboy/workspace/ng9/node_modules/tslib/tslib.js:136:27)
at Object.next (/Users/wuboy/workspace/ng9/node_modules/tslib/tslib.js:117:57)
at /Users/wuboy/workspace/ng9/node_modules/tslib/tslib.js:110:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/wuboy/workspace/ng9/node_modules/tslib/tslib.js:106:16)
at EventEmitter.<anonymous> (/Users/wuboy/workspace/ng9/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:232:32)
at EventEmitter.emit (events.js:198:13)
https://stackblitz.com/edit/angular-6cuvhn?file=package.json
package.json:
It's a new clean angular 9 (9.0.0-rc.9). The only two things I do in package.json are:
after run "npm install", I got following error:
Please refer to https://github.com/angular/angular/issues/34500#issuecomment-575025087