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

unmet peer vite@"^2.2.3 || ^3.0.0": found 4.0.0 #945

Closed
2 tasks done
n8sabes opened this issue Dec 10, 2022 · 5 comments
Closed
2 tasks done

unmet peer vite@"^2.2.3 || ^3.0.0": found 4.0.0 #945

n8sabes opened this issue Dec 10, 2022 · 5 comments
Labels
vite Issue related to vite

Comments

@n8sabes
Copy link

n8sabes commented Dec 10, 2022

Describe the bug

 WARN  Issues with peer dependencies found
.
├─┬ @vanilla-extract/vite-plugin 3.7.0
│ └── ✕ unmet peer vite@"^2.2.3 || ^3.0.0": found 4.0.0

Reproduction

"vite": "^2.2.3 || ^3.0.0"

System Info

System:
    OS: macOS 13.0.1
    CPU: (8) arm64 Apple M1
    Memory: 73.55 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.0.1 - ~/.nvm/versions/node/v19.0.1/bin/node
    npm: 8.19.2 - ~/.nvm/versions/node/v19.0.1/bin/npm
  Browsers:
    Chrome: 108.0.5359.98
    Firefox Developer Edition: 108.0
    Safari: 16.1

Used Package Manager

pnpm

Logs

No response

Validations

@wmaurer
Copy link

wmaurer commented Dec 23, 2022

I have the same problem using npm@8.19.2, which will error when installing @vanilla-extract/vite-plugin in a new project where vite@4.0.3 is being used (in this case using Nx and @nrwl/vite@15.4.0).

One can override the unmet dependency using:

npm install --save-dev @vanilla-extract/vite-plugin --legacy-peer-deps

From then on, all seems to work though, so my very simple test seems to show that this plugin is compatible with vite v4.

@maxlapides
Copy link

Here's another temporary solution: you can add this to your package.json:

"overrides": {
  "@vanilla-extract/vite-plugin": {
    "vite": "^4"
  }
}

@yuckiymouse
Copy link

Here's another temporary solution: you can add this to your package.json:

"overrides": {
  "@vanilla-extract/vite-plugin": {
    "vite": "^4"
  }
}

doesn't work, sadly.

@yuckiymouse
Copy link

I have the same problem using npm@8.19.2, which will error when installing @vanilla-extract/vite-plugin in a new project where vite@4.0.3 is being used (in this case using Nx and @nrwl/vite@15.4.0).

One can override the unmet dependency using:

npm install --save-dev @vanilla-extract/vite-plugin --legacy-peer-deps

From then on, all seems to work though, so my very simple test seems to show that this plugin is compatible with vite v4.

this works for me!

@askoufis
Copy link
Contributor

Fixed in #949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vite Issue related to vite
Projects
None yet
Development

No branches or pull requests

5 participants