[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Can't import dynamicdialog in module file
import { DynamicDialogModule } from 'primeng/dynamicdialog';
All another modules work fine.
https://i.imgur.com/IyfcvwN.png
Could not find a declaration file for module 'primeng/dynamicdialog'. '**/node_modules/primeng/dynamicdialog.js' implicitly has an 'any' type.
Try npm install @types/primeng if it exists or add a new declaration (.d.ts) file containing declare module 'primeng/dynamicdialog'; [7016]
Can you try with PrimeNG version 7.0.0 ?
Can you try with PrimeNG version 7.0.0 ?
Yes, I update version.
Angular version: 7.1.0
PrimeNG version: 7.0.0
This didn't help to me.
Had the same error message, but it only showed up in prod mode. No problem running my app in ng serve mode oder default ng build. ng build -c=production did not work though.
I could fixed the problem by importing the module like import { DynamicDialogModule } from 'node_modules/primeng/components/dynamicdialog/dynamicdialog' instead of the default/documented way from primeng/dynamicdialog.
I noticed dynamicdialog doesn't appear to have a d.ts file. Adding a _dynamicdialog.d.ts_ file to your _node_modules/primeng/_ folder with the export fixes this.
export * from 'primeng/components/dynamicdialog/dynamicdialog';
Same problem with ng build --prod here
Most helpful comment
Had the same error message, but it only showed up in prod mode. No problem running my app in
ng servemode oder defaultng build.ng build -c=productiondid not work though.I could fixed the problem by importing the module like
import { DynamicDialogModule } from 'node_modules/primeng/components/dynamicdialog/dynamicdialog'instead of the default/documented way fromprimeng/dynamicdialog.