Coder Social home page Coder Social logo

Comments (3)

richarddavenport avatar richarddavenport commented on June 24, 2024 1

@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.

asithade avatar asithade commented on June 24, 2024

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.

aitboudad avatar aitboudad commented on June 24, 2024

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

from ngx-loading-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.