Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ngx-loading-bar/router - breaks in CLI 10.1.7 #177

Closed
mnjaya opened this issue Oct 20, 2020 · 3 comments
Closed

@ngx-loading-bar/router - breaks in CLI 10.1.7 #177

mnjaya opened this issue Oct 20, 2020 · 3 comments

Comments

@mnjaya
Copy link

mnjaya commented Oct 20, 2020

Angular CLI: 10.1.7
Node: 12.19.0
OS: darwin x64
Angular: 10.1.6

@ngx-loading-bar/router - breaks

node_modules/@ngx-loading-bar/router/router.module.d.ts:3: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-loading-bar/router) which declares LoadingBarRouterModule 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.

Can the developer take a note and suggest ?

@richarddavenport
Copy link

@mnjaya this happened to me, but I just restarted my angular app and it fixed it. If that doesn't work, try deleting your node_modules folder and then reinstalling (npm install)

@asithade
Copy link

I'm seeing the same issue too. When I run yarn start it spews out a whole bunch of warnings/errors although the compilation still works:

../../node_modules/@angular/router/router.d.ts:2631:22 - error NG6002: Appears in the NgModule.imports of LoadingBarRouterModule, but could not be resolved to an NgModule class.

This likely means that the library (@angular/router) which declares RouterModule 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.

2631 export declare class RouterModule {
                          ~~~~~~~~~~~~
../../node_modules/@ngx-loading-bar/core/core.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of LoadingBarRouterModule, but could not be resolved to an NgModule class.

This likely means that the library (@ngx-loading-bar/core) which declares LoadingBarModule 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 LoadingBarModule {
                       ~~~~~~~~~~~~~~~~
../../node_modules/@angular/router/router.d.ts:2631:22 - error NG6003: Appears in the NgModule.exports of LoadingBarRouterModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

This likely means that the library (@angular/router) which declares RouterModule 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.

2631 export declare class RouterModule {
                          ~~~~~~~~~~~~
../../node_modules/@ngx-loading-bar/core/core.module.d.ts:1:22 - error NG6003: Appears in the NgModule.exports of LoadingBarRouterModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

This likely means that the library (@ngx-loading-bar/core) which declares LoadingBarModule 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 LoadingBarModule {

@aitboudad
Copy link
Owner

deleting node_module and reinstalling would fix the issue as mentioned @richarddavenport.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants