Upgrade JSS apps to JSS 22.5
Sitecore JSS version 22.5 primarily focuses on support for Angular 18. For Angular apps, you will need to update multiple dependencies. In general, the only other requirement is to update and install core JSS dependencies before re-testing your apps.
-
If you haven't already done so, upgrade your app to JSS 22.4.
-
Familiarize yourself with the JSS 22.5 release notes to ensure you understand the implications of upgrading.
This topic describes how to:
To update your JSS Next.js applications, follow the upgrade guide from JSS 22.4 to 22.5 for JSS Next.js apps instead of this topic.
Update Angular apps
To update your Angular applications:
-
Change the following dependencies to the versions shown:
Dependency
New version
@angular-devkit/build-angular~18.2.14@angular-eslint/eslint-plugin^18.4.3@angular/cli~18.2.13@angular/common~18.2.13@angular/compiler~18.2.13@angular/compiler-cli~18.2.13@angular/core~18.2.13@angular/platform-browser~18.2.13@angular/platform-browser-dynamic~18.2.13@angular/router~18.2.13@angular-devkit/core~18.2.14@angular-devkit/schematics~18.2.14@schematics/angular~18.2.14 -
Update your application's JSS package, and install dependencies.
Update application dependencies
For your upgraded applications to work correctly, you must update JSS dependencies.
To update your JSS dependencies:
-
In your existing application's
package.jsonfile, update every@sitecore-jsspackage to version~22.5.0. -
Install the dependencies with the following command:
RequestResponsenpm install