Skip to content

fix: pin vite@6.3.5 and vitest@0.34.6 for Node 18 compatibility#9212

Open
SunderSingh27 wants to merge 1 commit intoyarnpkg:masterfrom
SunderSingh27:fix/vite-node18-compat
Open

fix: pin vite@6.3.5 and vitest@0.34.6 for Node 18 compatibility#9212
SunderSingh27 wants to merge 1 commit intoyarnpkg:masterfrom
SunderSingh27:fix/vite-node18-compat

Conversation

@SunderSingh27
Copy link

Problem

Vite v7 requires Node >= 20, but many developers use Node 18.
Installing vite@latest with Node 18 fails with:
error vite@7.0.3: The engine "node" is incompatible with this module.

Solution

  • Pinned vite to 6.3.5
  • Pinned vitest to 0.34.6
  • Set yarn to ignore engines

This allows the project to work on Node 18 without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant