shopware-pwa
shopware-pwa copied to clipboard
Node.js 18 / Nuxt 2.16.x support
Discussed in https://github.com/vuestorefront/shopware-pwa/discussions/1988
Originally posted by bitfactory-frank-spee April 17, 2023 Is there any update on Node.js 18 support? And thus a Nuxt 2.16.x update (which is needed for that)?
I see there is still no update on a release (candi)date of Shopware Frontends (which was promised Q1 2023). So for now I think we are stuck with Shopware PWA to build a production version of a shopware headless shop.
Has anyone already tried (and hopefully succeeded) to update the current Shopware PWA version to Nuxt 2.16 / Node.js 18?
For Node.js 18 support you need to use Nuxt 2.16.2 or higher, https://github.com/nuxt/nuxt/releases/tag/v2.16.2, e.g.:
The main change in this patch release is that we now patch the crypto node built-in during build to allow Nuxt 2 to be used on Node versions greater than Node 16, which should ease the pressure users feel after Node 16 reaches its own EOL this year.
But it also means you get the breaking changes from 2.16.0, https://github.com/nuxt/nuxt/releases/tag/v2.16.0, e.g.:
Node.js v14+ Vue v2.7+ postcss v8+ core-js v3+