Upgrade JSS apps to JSS 22.5

Version: 22.x

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.

Before you begin

This topic describes how to:

Note

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:

  1. 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

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

  1. In your existing application's package.json file, update every @sitecore-jss package to version ~22.5.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,