-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
SvelteKit not working with workspaces
#4174
Comments
i'm having the same problem but with node |
This is probably caused by #4274 |
The issue us not about bunjs, but about locating the I believe the code block shared above was generated with the assumption of having the The code generation should not assume having the Until fixed, a remedy is to create a symlink to the actual /my/workspace/svelte/project/ $ ln -s ../../node_modules ./ edit: I was just browsing on the tablet and didn't realize this was under bunjs repo. This specific problem is in Svelte Kit (or maybe vitejs), not bun, unless the bogus path (../../....) was gathered from bun api by the mentioned modules. |
This appears to be functioning correctly now with |
What version of Bun is running?
0.7.4
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
Create Bun project with workspaces and a SvelteKit app. Run the Vite dev server inside Bun using the latest version of all packages.
What is the expected behavior?
The dev server should start without any error.
What do you see instead?
Additional information
The problem is that SvelteKit can't find the component as it's hoisted to the root
node_modules
in the project. Maybe this should work if Vite used Buns bundler and module resolution?The text was updated successfully, but these errors were encountered: