[DRAFT] feat(deps): update to node 18, yarn 4 #427
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Found this bug when trying to run tests locally:
This bug is caused by running on an old version of node on older versions of yarn when using vitest, which has been fixed in later updates. Updating to the latest version of yarn fixes this issue (the DS did it earlier this year), but v4 of yarn also requires at least node 18. We should at least update from node 16 to node 18 anyway for the engine, since it's at EOL. We could also update all the way to node 20, or even 22 if we're ok with it not being a LTS release for a few months. We can probably wait till post-mvp for that change.
Changes
How to test this PR
nvm use 18
yarn set version 4.1.1
or use corepackyarn run dev
yarn test
Screenshots
Before
After