Page 1 of 1

DynamicDialog problem on build prod.

Posted: 27 Nov 2019, 19:49
by scgsergio86
I'm facing a problem with Angular 7. In a development environment, DynamicDialog works well. But when I type the "ng build --prod" command. Show me the following error:

ERROR in: Unexpected value 'DynamicDialogModule in D:/xxx/xxx/node_modules/primeng/dynamicdialog.js' imported by the module 'AppModule in D:/xxx/xxx/src/app/app.module.ts'. Please add a @NgModule annotation.

In my app.module.ts file :

imports: [

How can I fix it?