Comments (3)
@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
)
from ngx-loading-bar.
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 {
from ngx-loading-bar.
deleting node_module
and reinstalling would fix the issue as mentioned @richarddavenport.
from ngx-loading-bar.
Related Issues (20)
- NullInjectorError: StaticInjectorError(AppModule)[LoadingBarComponent -> LoadingBarService] HOT 1
- Angular 10 Support HOT 2
- Move tslint, typescript to devdeps
- Just saying thanks HOT 1
- ignoreLoadingBar in guard HOT 4
- ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'null'. Current value: '0'. HOT 2
- Only have loading bar when loading lazy module HOT 1
- Adding the <ngx-loading-bar> elsewhere than App.module and App.component.html HOT 1
- Loading bar breaks when combined with NGXS HOT 5
- NullInjectorError: No provider for e! - @ngx-loading-bar/http-client HOT 1
- Warning incorrect peer dependency HOT 1
- Not showing ngx-loading-bar for particular request
- Update to Angular 13 HOT 1
- add a demo HOT 2
- create mx-steps component to move between steps HOT 1
- Rendering issue on a configured bar in Webkit Browsers (not Safari) HOT 1
- Angular 14 support HOT 1
- Support for Angular 14 - throws an error ngcc compilation failed HOT 1
- Loading bar shows only after request is completed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-loading-bar.