DynamicDialog problem on build prod.

UI Components for Angular
Post Reply
scgsergio86
Posts: 2
Joined: 30 Jul 2019, 16:05

27 Nov 2019, 19:49

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 :

@NgModule({
imports: [
DynamicDialogModule


How can I fix it?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests