Updating from Ionic 6 to 7
This guide assumes that you have already updated your app to the latest version of Ionic 6. Make sure you have followed the Upgrading to Ionic 6 Guide before starting this guide.
For a complete list of breaking changes from Ionic 6 to Ionic 7, please refer to the breaking changes document in the Ionic Framework repository.
Getting Started
Angular
- Ionic 7 supports Angular 14+. Update to the latest version of Angular by following the Angular Update Guide.
- If your project is using rxjs, Ionic 7 requires a minimum rxjs version of 7.5.0:
npm install rxjs@7.5.0
- Update to the latest version of Ionic 7:
npm install @ionic/angular@7
If you are using Ionic Angular Server and Ionic Angular Toolkit, be sure to update those as well:
npm install @ionic/angular@7 @ionic/angular-server@7 @ionic/angular-toolkit@9
Note:
@ionic/angular-toolkit@9
requires a minimum of Angular 15. If you are still on Angular 14, then you can skip updating to@ionic/angular-toolkit@9
.
React
- Ionic 7 supports React 17+. Update to the latest version of React:
npm install react@latest react-dom@latest
- Update to the latest version of Ionic 7:
npm install @ionic/react@7 @ionic/react-router@7
Vue
- Ionic 7 supports Vue 3.0.6+. Update to the latest version of Vue:
npm install vue@latest vue-router@latest
- Update to the latest version of Ionic 7:
npm install @ionic/vue@7 @ionic/vue-router@7
Core
- Update to the latest version of Ionic 7:
npm install @ionic/core@7
Updating Your Code
Browser Support
The list of browsers that Ionic supports has changed. Review the Browser Support Guide to ensure you are deploying apps to supported browsers.
If you have a browserslist
or .browserslistrc
file, update it with the following content:
Chrome >=79
ChromeAndroid >=79
Firefox >=70
Edge >=79
Safari >=14
iOS >=14