DEV Community


Posted on

Answer: error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

Fixed it by opting out of Ivy as per documentation.

Change to opt out of Ivy.

"enableIvy": false

Top comments (1)

raj_sekhar profile image
Raj Sekhar

For anyone who is landing to this for the same error.
The error also happens when imports are wrong. I was using V-11 Angular.