zurfyx / angular-custom-modal

Angular2+ Modal / Dialog (with inner component support).

Home Page:https://zurfyx.github.io/angular-custom-modal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error NG6002: 'ModalModule' does not appear to be an NgModule class in Angular 16 upgrade

ChandrakalaGrm opened this issue · comments

Hi Zurfyx,
I've been using angular-custom-modal for my Angular projects, however today, when upgrading to Angular 16, it is showing the below error in the while compiling the code and it is blocked to upgrade our project to Angular 16 migration.

error NG6002: 'ModalModule' does not appear to be an NgModule class.

8 ModalModule,
~~~~~~~~~~~

node_modules/angular-custom-modal/modal.module.d.ts:1:22
1 export declare class ModalModule {
~~~~~~~~~~~
This likely means that the library (angular-custom-modal) which declares ModalModule 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.

Could you please help how to fix this issue?

Thanks in Advance.

Hi @zurfyx, @niesteszeck,

Could you suggest the above issue.

Same on my side. Any updates on it?

Just add "enableIvy": false, in your tsconfig.app.json and served my app again and it works.

But this package is definitely not updated anymore (I think) you should check for custom approach