angular-ru-sdk
angular-ru-sdk copied to clipboard
🐞 - `@angular-ru/ngxs` is not compatible with `@ngxs/store` `v18`
Which @angular-ru/* package(s) are the source of the bug?
ngxs
Is this a regression?
No
Description
Try to use @angular-ru/ngxs with the newly released @ngxs/store v18.
Angular app compilation fails with the following errors:
X [ERROR] TS1238: Unable to resolve signature of class decorator when called as an expression.
Type 'typeof CountryRepository' has no properties in common with type 'DataStateClass<any, any>'. [plugin angular-compiler]
src/app/pages/countries/+state/country.repository.ts:8:1:
8 │ @StateRepository()
╵ ~~~~~~~~~~~~~~~~~
I don't have time to support that repository, sorry
That's fine. I'll look into it when I have time.
Thank you
@splincode @Markiewic to make @angular-ru/ngxs compatible with @ngxs/store v18, I would need to update angular to v16. Is that ok?
Sure, you can upgrade to Angular 16
The new packages seem to be missing peer dependencies.
fixed
Shouldn't there also be some minimum requirement for Angular and related packages (forms, cdk, router, etc)? Is it Angular 16 or 18?
I don't want to add this