Open fjpedrosa opened 1 year ago
Hi @fjpedrosa I had the same issue and I discovered that you need to add the --watch
flag before run
https://bun.sh/docs/cli/run#watch
bun --watch run dev # ✔️ do this
bun run dev --watch # ❌ don't do this
Although I just notice that I have to add
process.on('SIGINT', () => {
process.exit()
})
Otherwise the process is still running on ctrl+c
that might be a bug ?
I was working on win 11 wsl and restarting the wsl fixed the issue.
What version of Bun is running?
v1.0.2
What platform is your computer?
macOS Ventura 13.5.2
What steps can reproduce the bug?
Using this code
1) When executing the server with --watch mode and then finishing the process by using CTRL+C:
2) When executing the server with --watch mode and then modifying the index.ts file and saving it:
What is the expected behavior?
In case 1), when finishing the process I expect to see in console the message "exit issued"
In case 2), when saving the modified file I expect not to have any error.
What do you see instead?
See previous attached images.
Additional information
No response