Module '"@angular/core"' has no exported member 'InjectFlags'
Describe the bug
Hi,
I am using PrimeNg "19.1.3" and trying to upgrade angular 20. but getting below error on compilation
TS2305: Module '"@angular/core"' has no exported member 'InjectFlags'. [plugin angular-compiler]
node_modules/primeng/dynamicdialog/dynamicdialog-injector.d.ts:1:49:
1 │ ...tions, Injector, ProviderToken, InjectFlags } from '@angular/core';
Pull Request Link
No response
Reason for not contributing a PR
- [ ] Lack of time
- [ ] Unsure how to implement the fix/feature
- [ ] Difficulty understanding the codebase
- [ ] Other
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-4xnrkakt-beyefxue?file=package.json
Environment
local
Angular version
20.0.0
PrimeNG version
v19
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
- Upgrade angular dependencies to 20
- run npm start
Expected behavior
should compile
Angular 20 is not supported yet. See https://github.com/primefaces/primeng/issues/18421 or https://github.com/primefaces/primeng/issues/18463.
There is a migration in ng update for InjectFlags if updating to Angular 20
@venkatbathula35 https://github.com/primefaces/primeng/issues/18421#issuecomment-2978275788
@junan-trustarc this works. thank you for your suggestion.