Updating ScandiPWA

Update your version of ScandiPWA to the latest one

Before you start, make sure your project is backed up, ideally in a version control system such as Git.

Update Create ScandiPWA App

Bump the version of @scandipwa/scandipwa-scripts to the latest release and install it:

yarn (recommended)
npm
yarn (recommended)
yarn add @scandipwa/scandipwa-scripts@latest
npm
npm install @scandipwa/scandipwa-scripts@latest

This will update the packages of Create ScandiPWA App. Find more information here.

We commit to keeping the breaking changes to a minimum. However, you should check if there are any migration instructions in the changelog and follow them to adapt to a new version.

Restart the compilation script and verify that everything is working as expected.

Update ScandiPWA theme

Step 1: Bump the version of @scandipwa/scandipwa to the latest release and install it:

Go to your ScandiPWA theme root directory and run following:

yarn (recommended)
npm
yarn (recommended)
yarn add @scandipwa/scandipwa@latest
npm
npm install @scandipwa/scandipwa@latest

This will update the version of the ScandiPWA theme.

Step 2: Update the composer packages

Go to your Magento 2 root directory and run following:

composer update

We commit to keeping the breaking changes to a minimum. However, you should check if there are any migration instructions in the changelog and follow them to adapt to a new version.

Restart the compilation script and verify that everything is working as expected.

Update Create Magento App

Bump the version of @scandipwa/magento-scripts to the latest release and install it:

yarn (recommended)
npm
yarn (recommended)
yarn add @scandipwa/magento-scripts@latest
npm
npm install @scandipwa/magento-scripts@latest

This will update the packages of Create Magento App. Find more information here.

We commit to keeping the breaking changes to a minimum. However, you should check if there are any migration instructions in the changelog and follow them to adapt to a new version.

Restart the compilation script and verify that everything is working as expected.