question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NgbModule has not been processed correctly by ngcc

See original GitHub issue

I am working on a new angular application, I’ve installed ng-bootstrap by using:

npm install --save @ng-bootstrap/ng-bootstrap

After adding NgbModule to app.module.ts I am getting the following error:

ERROR in node_modules/@ng-bootstrap/ng-bootstrap/index.d.ts:20: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 (@ng-bootstrap/ng-bootstrap) which declares NgbModule 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. 20 export declare class NgbModule {

Angular CLI: 9.1.0
Node: 12.16.1
OS: win32 x64
Ivy Workspace: Yes
npm: 6.13.4
"@ng-bootstrap/ng-bootstrap": "^6.0.2"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
Abdulrahman-Falyouncommented, Apr 6, 2020

@maxokorokov clearing the cache and removing and reinstalling node_modules solved it, many thanks.

4reactions
anand94acommented, Jun 18, 2020

The order in which I executed the commands within the project created are as follows:

ng add @ng-bootstrap/ng-bootstrap

npm install --save @ng-bootstrap/ng-bootstrap

It worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MatCheckbox has not been processed correctly by ngcc, or is ...
I found the solution here. I was imported Matcheckbox instead of MatCheckboxModule. before that, I ran this command npm ci I don't know...
Read more >
Why ngbootstrap isn't being processed correctly? : r/angularjs
This likely means that the library (@ng-bootstrap/ng-bootstrap) which declares NgbDropdown has not been processed correctly by ngcc, or is ...
Read more >
“This likely means that the library (@angular/platform-browser ...
This likely means that the library (@ng-bootstrap/ng-bootstrap) which declares NgbModule has not been processed correctly by ngcc, or is not ...
Read more >
The library (@angular/forms) which declares FormBuilder has ...
This likely means that the library (@angular/forms) which declares FormGroup has not been processed correctly by ngcc, or is not compatible with ...
Read more >
not compatible with Angular Ivy - Floyk
If you have experience error with your newly installed module on Angular 9 or ... has not been processed correctly by ngcc, or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found