Skip to content

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 [email protected]: 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