9.0.0-beta.2 Fails to compile
See original GitHub issueHello, Im trying the new 9 beta 2 but i can’t get it to compile with ngcc, i’m getting this error:
`Error: Error on worker #5: Error: Failed to compile entry-point ng-zorro-antd/empty (es2015 as esm2015) due to compilation errors: node_modules/ng-zorro-antd/core/outlet/outlet.module.d.ts:8:22 - error NG6002: Appears in the NgModule.imports of NzEmptyModule, but could not be resolved to an NgModule class.
This likely means that the library (ng-zorro-antd/core/outlet) which declares NzOutletModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library’s authors to see if the library is expected to be compatible with Ivy.
8 export declare class NzOutletModule { ~~~~~~~~~~~~~~
at ClusterWorker.compile (/home/mmmm/projects/private/zorro/node_modules/@angular/compiler-cli/ngcc/src/main.js:176:27)
at Worker.<anonymous> (/home/mmmm/projects/private/zorro/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:44:42)
at Worker.emit (events.js:311:20)
at process.<anonymous> (internal/cluster/worker.js:32:12)
at process.emit (events.js:311:20)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
at ClusterMaster.onWorkerMessage (/home/mmmm/projects/private/zorro/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:165:27)
at /home/mmmm/projects/private/zorro/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:49:95
at ClusterMaster.<anonymous> (/home/mmmm/projects/private/zorro/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:245:57)
at step (/home/mmmm/projects/private/zorro/node_modules/tslib/tslib.js:136:27)
at Object.next (/home/mmmm/projects/private/zorro/node_modules/tslib/tslib.js:117:57)
at /home/mmmm/projects/private/zorro/node_modules/tslib/tslib.js:110:75
at new Promise (<anonymous>)
at Object.__awaiter (/home/mmmm/projects/private/zorro/node_modules/tslib/tslib.js:106:16)
at EventEmitter.<anonymous> (/home/mmmm/projects/private/zorro/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:239:32)
at EventEmitter.emit (events.js:311:20)
Compiling @ngrx/effects : es2015 as esm2015`
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:14 (5 by maintainers)

Top Related StackOverflow Question
Same problem with beta.3 and angular 9.1 but on many more components
ng-zorro-antd/*A small extract:
Here is a repo with problem: https://github.com/boskiv/nx-zorro Before updating (on 9.0.1) it was compiled without an error.