Error NG6002
See original GitHub issueHi
Is this something I did wrong or is it not compatible to Angular 9?
ERROR in node_modules/ngx-image-cropper/lib/image-cropper.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of VenuesModule, but could not be resolved to an NgModule class. This likely means that the library (ngx-image-cropper) which declares ImageCropperModule 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. 1 export declare class ImageCropperModule { ~~~~~~~~~~~~~~~~~~
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 9.0.4
Node: 12.11.1
OS: darwin x64
Angular: 9.0.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.900.4
@angular-devkit/build-angular 0.900.4
@angular-devkit/build-optimizer 0.900.4
@angular-devkit/build-webpack 0.900.4
@angular-devkit/core 9.0.4
@angular-devkit/schematics 9.0.4
@angular/cdk 9.1.0
@angular/fire 5.4.2
@angular/material 9.1.0
@ngtools/webpack 9.0.4
@schematics/angular 9.0.4
@schematics/update 0.900.4
rxjs 6.5.4
typescript 3.6.4
webpack 4.41.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Appears in the NgModule.imports of AppModule, but could not ...
error NG6002 : Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class · restarting console helped me....
Read more >Answer: error NG6002: Appears in the NgModule.imports of ...
answer re: error NG6002: Appears in the NgModule. imports of AppModule, but could not be resolved to an NgModule class. Fixed it by...
Read more >IVY Error NG6002: Appears in the NgModule.imports ... - GitHub
As it turns out, for us the issue was caused by the presence of node_modules folder inside the src folder. Removing this folder...
Read more >error NG6002 - Angular - CodeDocu.com
Angular Error NG6002 Appears the NgModule imports of AppModule but could not be resolved to class at node modules common http 81 22...
Read more >Error message Is it missing @NgModule annotation? NG6002
https://codedocu.com/Net-Framework/ASP_dot_Net-Core/Angular/ Errors /Angular-Error_colon_-Is-it-missing-an-@NgModule-annotation?2672Error ...
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 Free
Top 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

Hi guys, this fixed the problem for me ( ngx-image-cropper package with 3.1.6 version and Angular 9.1.0 )
Remove the node modules rm -rf node_modules
And npm install again and it works properly.
Thanks, however I was successful by simply closing the terminal after install with @latset flag and restarting it (ng serve).