Skip to content
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

Why is Vite a dependency rather than a peer dependency? #29

Open
DiFuks opened this issue Feb 9, 2024 · 1 comment
Open

Why is Vite a dependency rather than a peer dependency? #29

DiFuks opened this issue Feb 9, 2024 · 1 comment

Comments

@DiFuks
Copy link

DiFuks commented Feb 9, 2024

We use Vite version 5 in the project, and the only library that has Vite 3 as a dependency is vitest-preview.

@val1984
Copy link

val1984 commented Mar 27, 2024

Having the same issue, we used pnpm overrides in package.json to make vitest-preview use vite version from package.json this way:

{
  "pnpm": {
    "overrides": {
      "vitest-preview>vite": "$vite"
    }
  }
}

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

No branches or pull requests

2 participants