Upgrade JSS apps to JSS 22.9
Sitecore JavaScript Rendering SDK version 22.9 requires you to make some modifications to your apps.
-
If you haven't already done so, upgrade your app to JSS 22.8.
-
Familiarize yourself with the JSS 22.9 release notes to ensure you understand the implications of upgrading.
-
To update your JSS Next.js applications, follow the upgrade guide from JSS 22.8 to 22.9 for JSS Next.js apps instead of this topic.
This topic describes how to:
Update Angular app
To update your Angular application:
-
In your existing application's
package.jsonfile:-
Update the following dependencies to the specified versions:
-
Remove
@types/jasminewd2andprotractordependencies. -
Remove the
e2escript from the scripts section. -
Add the following after
devDependenciessection:This addresses a vulnerability in one of the
angular-webkitdependencies.
-
-
Delete the
e2efolder from your existing application. -
Update your application's JSS package, and install dependencies.
Update React app
To update your React application:
-
In your existing application's
package.jsonfile:-
Update the following dependencies to the specified versions:
-
Find the following dependencies:
-
Replace it with the following:
-
-
In
server/server.webpack.config.js, find the following plugins and update their references:Old
New
@babel/plugin-proposal-export-namespace-from@babel/plugin-transform-export-namespace-from@babel/plugin-proposal-private-methods@babel/plugin-transform-private-methods@babel/plugin-proposal-private-property-in-object@babel/plugin-transform-private-property-in-object -
In
src/setupProxy.js, make the following updates to preserve the pre-upgradehttp-proxy-middlewareformat:-
Find the following:
-
Replace it with the following:
-
Replace all mentions of
createProxyMiddlewarewithlegacyCreateProxyMiddleware.
-
-
If you have any custom logic that uses
express,http-proxy-middleware,babel-loader, or other dependencies mentioned in this guide, please refer to their corresponding guides: -
Update your application's JSS package, and install dependencies.
Update the Node headless SSR Experience Edge app
To update your Node headless SSR Experience Edge app:
-
In your existing application's
package.jsonfile, update the following dependencies to the specified versions: -
Update your application's JSS package, and install dependencies.
Update the Node headless SSR proxy app
To update your Node headless SSR proxy app:
-
In your existing application's
package.jsonfile, update the following dependencies to the specified versions: -
In
src/index.ts:-
Find the following:
-
Replace it with the following:
-
-
If you have custom logic in your proxy app that uses
express, see Moving to Express 5. -
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.9.0. -
Install the dependencies with the following command: