primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Module '"@angular/core"' has no exported member 'InjectFlags'

Open venkatbathula35 opened this issue 7 months ago • 1 comments

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

  1. Upgrade angular dependencies to 20
  2. run npm start

Expected behavior

should compile

venkatbathula35 avatar Jun 10 '25 16:06 venkatbathula35

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

jase88 avatar Jun 10 '25 18:06 jase88

@venkatbathula35 https://github.com/primefaces/primeng/issues/18421#issuecomment-2978275788

junan-trustarc avatar Jun 16 '25 21:06 junan-trustarc

@junan-trustarc this works. thank you for your suggestion.

venkatbathula35 avatar Jun 26 '25 15:06 venkatbathula35