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

Dependency version mismatch in Vite 5.2.0+ with Bun installer #9544

Closed
jasperkelder opened this issue Mar 21, 2024 · 3 comments
Closed

Dependency version mismatch in Vite 5.2.0+ with Bun installer #9544

jasperkelder opened this issue Mar 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jasperkelder
Copy link
Contributor

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

When deploying a SvelteKit application on Vercel using Bun as the package manager, upgrading Vite to version 5.2.0 or higher results in a version mismatch error for esbuild. This issue does not occur when using Vite version 5.1.6 or when switching the package manager to npm, suggesting the problem might be specific to how Bun handles dependency resolution or installation with newer versions of Vite.

Error: Expected "0.20.2" but got "0.19.12"
at validateBinaryVersion (/vercel/path0/node_modules/vite/node_modules/esbuild/install.js:133:11)
at /vercel/path0/node_modules/vite/node_modules/esbuild/install.js:286:5

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@jasperkelder jasperkelder added the bug Something isn't working label Mar 21, 2024
@mquandalle
Copy link

I'm still facing this issue, is it really fixed?

@jasperkelder
Copy link
Contributor Author

The issue I was facing has been gone after some Vite/Bun updates. I can't confirm though whether it's fixed or I somehow got lucky.

@jasperkelder jasperkelder reopened this Apr 11, 2024
@mquandalle
Copy link

The issue is now fixed for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants