-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Node 22 (@W-17518271@) #2218
Conversation
Signed-off-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
Signed-off-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
- node: 16 | ||
npm: 11 | ||
- node: 18 | ||
npm: 11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks for adding these excludes.
# The current recommended version for Managed Runtime: | ||
# https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/upgrade-node-version.html | ||
IS_MRT_NODE: ${{ matrix.node == 20 && matrix.npm == 10 }} | ||
IS_MRT_NODE: ${{ matrix.node == 22 && matrix.npm == 10 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you confirm the Node 22 is already out and supported on production mrt? If not, then I believe this should stay at the older Node 20.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, production mrt does not currently support Node 22 yet. When I push a bundle, I got this error:
info: Beginning upload to https://cloud.mobify.com
error: HTTP 400
SSRFunctionNodeVersion: Value 22.x is not one of 18.x, 20.x
For more information visit https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pushing-and-deploying-bundles.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node 22 should be supported on product MRT soon, let me double check the timeline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node 22 support tentatively lands January 31st, 2025 in MRT production
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is resolved now, node 22 launched last night and I smoke-tested joel's node 22 bundle here
https://scaffold-pwa-joel-test-env.mobify-storefront.com/global/en-GB/category/mens-accessories-ties
@@ -10,7 +10,7 @@ const config = { | |||
require('@babel/preset-env'), | |||
{ | |||
targets: { | |||
node: 18 | |||
node: 22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, it looks like this did not get updated last time.
Signed-off-by: Joel Uong <88680517+joeluong-sfcc@users.noreply.github.com>
This PR adds support for node 22 and npm 11.
There are follow up tickets already created for the following work:
Deployed storefront on MRT test environment on node 22 can be found here: https://joel-test-env-production.mobify-storefront-staging.com/
Description
Types of Changes
Changes
How to Test-Drive This PR
Smoke test deployed storefront using node 22 on MRT: https://joel-test-env-production.mobify-storefront-staging.com/
OR
Test locally
git checkout ju/support-node-22
npm ci
template-retail-react-app
and smoke test./packages/pwa-kit-create-app/scripts/create-mobify-app-dev.js
and smoke test generated projectChecklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization