Support for Angular 21.1
If I try to install primeng to a new angular workspace/application (Angular 21.1) this fails because of the fixation of dependency to 21.0
npm error Conflicting peer dependency: @angular/[email protected] npm error node_modules/@angular/core npm error peer @angular/core@"^21.0.7" from [email protected] npm error node_modules/primeng npm error primeng@"*" from the root project
With the jump to PrimeNg 21.1.x, I would have expected that Angular 21.1 is supported. Angular 21.1.0 has been released nearly 3 week ago.There shouldn't be any breaking changes - apart from the experimental signal forms API.
Has the support for Angular 21.1 been already planned?
@mattlocker I had to npm i -f and then it worked afterwards with regular npm i. Otherwise delete package-lock and node_modules and try again.
NPM is quirky sometimes
PrimeNG package.json is clear for 21.1
"peerDependencies": { "@angular/cdk": "^21.0.0", "@angular/common": "^21.0.0", "@angular/core": "^21.0.7", "@angular/forms": "^21.0.0", "@angular/router": "^21.0.0", "@angular/platform-browser": "^21.0.0",
@denny99 thank you for your response! Npm seems to be quite quirky indeed :)
I switched to pnpm and the trouble was also gone, no force needed.