Ionic 6 + Angular 13, may I switch to RxJS 7.x?

I successfully migrated from Ionic 5 to Ionic 6 and from Angular 12 to Angular 13, may I switch to RxJS 7.x or Ionic is internally tied to RxJS 6.x?

Hi

I have never seen an Rxjs dependency for Ionic itself

Compatibility between Angular 13 and RXJs7.0 can be key though

Edit: and reading through below angular 13 loves rxjs7.4

So provided you ensure you can backtrack in case of failure, you seem good to go!

Thanks, I will try.

No official reply from ionic team maybe means “it’s fine”

Upgrading rxjs I receive the following WARNING, may I ignore them?

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: mytestapp@0.0.1
npm WARN Found: rxjs@6.6.7
npm WARN node_modules/rxjs
npm WARN   rxjs@"~7.5.5" from the root project
npm WARN   22 more (@angular-devkit/core, @angular-devkit/schematics, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/core@5.34.0
npm WARN node_modules/@ionic-native/core
npm WARN   peer @ionic-native/core@"^5.1.0" from @ionic-native/downloader@5.36.0
npm WARN   node_modules/@ionic-native/downloader
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: mytestapp@0.0.1
npm WARN Found: rxjs@6.6.7
npm WARN node_modules/rxjs
npm WARN   rxjs@"~7.5.5" from the root project
npm WARN   22 more (@angular-devkit/core, @angular-devkit/schematics, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/downloader@5.36.0
npm WARN node_modules/@ionic-native/downloader
npm WARN   @ionic-native/downloader@"^5.36.0" from the root project

I don’t think this is the official channel for getting official replies

But ionic staff are pretty active somaybe someone will chip in

As to the warnings - I cannot tell from testing myself. I wouldn’t be scared away from continuing a migration but remain alert for issues

1 Like

I’m testing everything searching regressions but thankfully everything seems to work properly.
In next weeks I will focus on testing on different devices the the downloader plugin that hasn’t a direct Capacitor replacement

1 Like

Thx for sharing your result here!

So, rxjs do create an error, since ionic need rxjs@"^5.5.0 || ^6.5.0" which make running such command impossible. ionic cordova run android.

Also if you are still using cordova, the migration for capacitor with ionic integrations enable capacitor wont work since you cannot use --force.

If you need to do one of them, please do not migrate to rxjs^7.0