Upgrade JSS apps to JSS 22.7

Version: 22.x

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.

Before you begin
  • 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:

Note

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:

  1. In your existing application's package.json file, update the following dependencies to the specified versions:

    RequestResponse
    "react": "^19.1.0",
    "react-dom": "^19.1.0",
    "eslint-plugin-react": "^7.37.5",
    
  2. Update your application's JSS package, and install dependencies.

  3. 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:

  1. In your existing application's package.json file, update every @sitecore-jss package to version ~22.7.0.

  2. Install the dependencies with the following command:

    RequestResponse
    npm install

Do you have some feedback for us?

If you have suggestions for improving this article,