Upgrade JSS apps to JSS 22.7
Sitecore JavaScript Rendering SDK version 22.7 requires you to make some modifications to your apps. For React apps, this will include upgrading to React 19.
-
If you haven't already done so, upgrade your app to JSS 22.6.
-
For React apps, we recommend you read the official release notes for React 19 to understand what has changed in this version.
-
Familiarize yourself with the JSS 22.7 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.6 to 22.7 for JSS Next.js apps instead of this topic.
Update React apps
To update your React applications:
-
In your existing application's
package.jsonfile, update the following dependencies to the specified versions:RequestResponse"react": "^19.1.0", "react-dom": "^19.1.0", "eslint-plugin-react": "^7.37.5", -
Update your application's JSS package, and install dependencies.
-
Make all other necessary changes according to the React 19 upgrade guide.
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.7.0. -
Install the dependencies with the following command:
RequestResponsenpm install