I have an angular project that uses a library ngx-store that seems that is not compatible with Angular 9.
If I run “ng build –prod” it builds the project with no problem.
But if I run the same command outside Eclipse or using node_modules/.bin/ng
i got the following error:
ERROR in node_modules/ngx-store/src/ngx-store.d.ts:7:22 - error NG6002: Appears in the NgModule.imports of AppModule,
but could not be resolved to an NgModule class.
This likely means that the library (ngx-store) which declares WebStorageModule has not been processed correctly by ng
cc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Al
so consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
7 export declare class WebStorageModule
Could you explain this different behavior?