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?
DynamicDialog problem on build prod.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests