question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

9.0.0-beta.2 Fails to compile

See original GitHub issue

Hello, 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
ThibaudAVcommented, Mar 26, 2020

Same problem with beta.3 and angular 9.1 but on many more components ng-zorro-antd/*

A small extract:

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 {
                       ~~~~~~~~~~~~~~

Compiling @angular/material/form-field : es2015 as esm2015
Compiling @angular/cdk/layout : es2015 as esm2015
Compiling @angular/material/button : es2015 as esm2015
Compiling ng-zorro-antd/icon : es2015 as esm2015
Compiling ng-zorro-antd/tooltip : es2015 as esm2015
Error: Failed to compile entry-point ng-zorro-antd/tooltip (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 NzToolTipModule, 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 {
                       ~~~~~~~~~~~~~~
node_modules/ng-zorro-antd/core/overlay/nz-overlay.module.d.ts:8:22 - error NG6002: Appears in the NgModule.imports of NzToolTipModule, but could not be resolved to an NgModule class.

This likely means that the library (ng-zorro-antd/core/overlay) which declares NzOverlayModule 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 NzOverlayModule {
                       ~~~~~~~~~~~~~~~
node_modules/ng-zorro-antd/core/no-animation/nz-no-animation.module.d.ts:8:22 - error NG6002: Appears in the NgModule.imports of NzToolTipModule, but could not be resolved to an NgModule class.

5reactions
boskivcommented, Mar 23, 2020

Here is a repo with problem: https://github.com/boskiv/nx-zorro Before updating (on 9.0.1) it was compiled without an error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiling angular project with "An unhandled exception ...
I used ng add @angular/material and npm install @angular/flex-layout@latest --save and I got this error. Till now I tried: reinstall flexLayot ...
Read more >
1997635 – Latest kmod-kvdo does not ... - Red Hat Bugzilla
Description of problem: The latest available build for RHEL-9.0.0-beta of kmod-kvdo depends on kernel-5.14.0-0.rc4.35.el9, but the latest kernel ...
Read more >
Unity 2022.2.0b5
Graphics: Implemented custom error/loading shader support for the BatchRendererGroup . Graphics: OpenGL ES 3.1 support for BatchRendererGroup.
Read more >
Image Layer Details - redash/redash:9.0.0-beta.b42121
Wasm is a fast, light alternative to Linux containers – try it out today with the Docker+Wasm Beta. ✕. hub.
Read more >
How to read debug Sage 9.0.0-beta3 - sage - Roots Discourse
Exit status 2 npm ERR! npm ERR! Failed at the sage@9.0.0-beta.3 build script. npm ERR! This is probably not a problem with npm....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found