Closed RedYetiDev closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
nodejs-org | ✅ Ready (Inspect) | Visit Preview | May 21, 2024 8:19pm |
We can't do this, as Vercel only supports Node.js v20. And this syntax is Node.js v22+ only.
Sorry, closing this PR as we simply cannot use this now. I appreciate the effort, tho!
(Although the deployment passed I want to avoid using features of an unsupported version on our cloud provider)
on node V20.13.1 it's work with the with
keyword
https://nodejs.org/docs/latest-v20.x/api/esm.html#import-attributes
on node V20.13.1 it's work with the
with
keyword
Yes, it got backported recently, but this PR also changes the target Node version on package.json to >=20
; I really want to avoid adding features that are specific to a version (that might be backported or not) to a stable-running environment.
We don't need to be in the edge of Node.js here, let's wait until Vercel officially supports v22.
Description
This PR changes all instances of
import ... from ... assert { ... }
toimport ... from ... with { ... }
Validation
A reviewer should verify that the tests pass in both Node.js v22 and Node.js v20.
Related Issues
N/A
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.