NgbModule has not been processed correctly by ngcc
See original GitHub issueI 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:
- Created 3 years ago
- Comments:14 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@maxokorokov clearing the
cache
and removing and reinstallingnode_modules
solved it, many thanks.The order in which I executed the commands within the project created are as follows:
It worked for me.