Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ngxs + Angular 17 = not compatible?

Tags:

angular

ngxs

When I install NGXS in my Angular 17 project I get this error:

Could not resolve dependency:
npm ERR! peer @angular/core@">=12.0.0 <17.0.0" from @ngxs/[email protected]

I don't seem to find any specs on the NGXS website about what Angular versions I can and cannot use, but it seems to be an Angular version lower than 17? Am I doing something wrong because I can't seem to find any official info on this. Is there anyone that has made this work? The install succeeded when I used the --force parameter, but this is a workaround rather than a solution.

like image 935
Jack Avatar asked Jun 06 '26 07:06

Jack


1 Answers

ngxs/store supports v17 from 3.8.2 onwards. Please update to at least this version to use it with Angular v17 !


Old answer.

The v17 support is pending PR.

Until this is release, you can just force the install with npm install --force or add an overrides section in your package.json

like image 108
Matthieu Riegler Avatar answered Jun 08 '26 22:06

Matthieu Riegler