Megi Kuka
Megi Kuka

Reputation: 21

From angular version 11 to version 12, AgmMarkerSpiderModule does not work

Error: node_modules/agm-oms/marker-spider.module.d.ts:7: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 (agm-oms/marker-spider.module) which declares AgmMarkerSpiderModule 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.

export declare class AgmMarkerSpiderModule {

tired to upgrade the library but no luck

Upvotes: 0

Views: 89

Answers (1)

Naren Murali
Naren Murali

Reputation: 57941

I think you can solve this issue by running the below command

It will solve the noncompatible package not being able to run in ivy problem!

ngcc

You can also configure a postinstall script to run ngcc, if you do a fresh npm install

"scripts": {
    ...
    "postinstall": "ngcc",
    ...
}

NGCC – Angular Compatibility Compiler

ngcc

Upvotes: 0

Related Questions