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

Vite 6 #97

Open
aleksei-reznichenko opened this issue Dec 17, 2024 · 2 comments
Open

Vite 6 #97

aleksei-reznichenko opened this issue Dec 17, 2024 · 2 comments

Comments

@aleksei-reznichenko
Copy link

Please add support for Vite 6

@zaydek
Copy link

zaydek commented Jan 5, 2025

I think I'm having the same issue

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR!   dev vite@"^6.0.5" from the root project
npm ERR!   peer vite@"^4.2.0 || ^5.0.0 || ^6.0.0" from @vitejs/[email protected]
npm ERR!   node_modules/@vitejs/plugin-react
npm ERR!     dev @vitejs/plugin-react@"^4.3.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^5.2.7" from [email protected]
npm ERR! node_modules/vite-plugin-stylex
npm ERR!   dev vite-plugin-stylex@"^0.13.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR!   peer vite@"^5.2.7" from [email protected]
npm ERR!   node_modules/vite-plugin-stylex
npm ERR!     dev vite-plugin-stylex@"^0.13.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /Users/zaydek/.npm/_logs/2025-01-05T22_41_11_573Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/zaydek/.npm/_logs/2025-01-05T22_41_11_573Z-debug-0.log

@zaydek
Copy link

zaydek commented Jan 5, 2025

@aleksei-reznichenko Addding overrides to my package.json seems to silence the error. I also tried * for the version but it didn't work.

{
  ...
  "dependencies": {
    ...
  },
  "devDependencies": {
    ...
    "vite": "^6.0.5",
    "vite-plugin-stylex": "^0.13.0"
  },
  "overrides": {
    "vite-plugin-stylex": {
      "vite": "^6.0.5"
    }
  }
}

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