Upgrade JSS 22.4 Next.js apps to version 22.5

Version: 22.x

This topic covers most of the changes you must make to your existing JSS 22.4 applications to benefit from the latest improvements in version 22.5. However, because of the nature of JavaScript and Next.js application development, this topic doesn't account for all the customization you might have in your existing application.

Note

JSS 22.5 primarily focuses on support for Angular 18. For Next.js, the only requirement is to update dependencies before re-testing your apps.

While upgrading, consider the JSS templates and add-ons you used when creating your Next.js application. You can find them in your package.json file. For example, a JSS 22.4 application might use the following templates and add-ons:

  • nextjs 

  • nextjs-styleguide 

  • nextjs-multisite 

Before you begin
  • If you haven't already done so, upgrade your app to JSS 22.4.

  • Familiarize yourself with the changelog. If your application is heavily customized, the changelog can provide guidance on what additional changes you need that are not be covered in this topic.

This topic describes how to:

Update application dependencies in your existing app

For your upgraded application to work correctly, you must update dependencies.

To update your 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

Next steps

To finalize the upgrade process, make sure you resolve any errors and warnings you encounter. Enable debug logging for JSS specific issues to assist you if necessary.

Do you have some feedback for us?

If you have suggestions for improving this article,