-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Not able to resolve bun:*
packages
#14351
Labels
Comments
9 tasks
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I was playing with SSR on Astro (uses Vite) with Bun, and as soon as I try importing anything that uses the Bun API, like "bun:sqlite" it fails to resolve with the following error...
I found someone with a similar problem on the Astro issue tracker.
I went digging, and found the following snippet in
nodeResolver()
in Vite. I'm not that familiar with Vite's code-base, but I'd assume addingid.startsWith('bun:')
there would fix the problem.Reproduction
Astro + Bun
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: