-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot watch files in /mnt
directory on WSL
#4335
Comments
The issue is that the Plan 9 server in WSL 2 does not support file watching on Windows files. The workaround is to place your files into the Linux file system (plus you'll get a performance boost). |
Probably nice to put in the docs somewhere. I was wondering why the example in the docs that I was trying doesn't work at all. |
Thank you! Solved for me. |
I can confirm it doesn't work on Windows folders. I tried the following example provided in the official documentation: https://bun.sh/docs/runtime/hot#:~:text=In%20this%20example%2C%20Bun%20is import { serve } from "bun";
console.log("I restarted at:", Date.now());
serve({
port: 4003,
fetch(request) {
return new Response("Sup");
},
}); The page makes no mention of For any Windows users reading this, currently you need to place your projects somewhere in the folder |
/mnt
directory on WSL
Duplicate of #5841 |
We fill fix this so it works on |
What version of Bun is running?
0.8.1+16b4bf341acc0f4804f0b6bdf5298c180cd00366
What platform is your computer?
Microsoft Windows NT 10.0.22621.0 x64
What steps can reproduce the bug?
index.ts
file in/mnt/c/Users/User/something/
directorycd /mnt/c/Users/User/something/
(in WSL console)bun run --watch index.ts
(in WSL console)index.ts
(change console.log text or something)What is the expected behavior?
index.ts restarted
What do you see instead?
Nothing happened
Additional information
No response
The text was updated successfully, but these errors were encountered: