<aside> ✅ Upgrade ScandiPWA in Storefront theme mode to the newest version
</aside>
The following steps must be completed to update to the newer ScandiPWA version:
@scandipwa/scandipwa
composer.json
dependencies@scandipwa/scandipwa
Go to your ScandiPWA theme root directory and run the following:
Yarn
yarn add @scandipwa/scandipwa@latest
NPM
npm install @scandipwa/scandipwa@latest
composer.json
dependenciesTo update the Composer dependencies of your ScandiPWA theme, first, build or start the application:
<aside> 🚨 Heads up!
When upgrading, the build or start of the application might throw an error asking you to upgrade the composer.json
! This is expected.
</aside>
Yarn
yarn start
NPM
npm run start
Complete the instructions indicated in error, for example following error:
Must indicate, that you must bump the scandipwa/customer-graph-ql
to a newer version (^3
). You can do it in composer.json
.
<aside>
➡️ Another way to quickly resolve this is to copy the require
field of your theme’s parent theme. This is, however, not safe as it might omit some extension’s dependencies.
</aside>
Update the composer.json
on your Magento 2 server. You can again synchronize the updates from ScandiPWA theme’s require
field of composer.json
and your Magento 2 server’s root composer.json
.
To make sure all the features of the new ScandiPWA are working correctly, make sure to stay on the latest toolchains. Follow the guides below to upgrade them: