-
Notifications
You must be signed in to change notification settings - Fork 40
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
bun run --watch just keeps restarting the server over and over #143
Comments
this also seems to happen when using |
nodemon on windows also has the same issue, keeps restarting the server. |
this is weird |
Try ignoring the temporary file that vite produces: {
"scripts": {
"dev": "tsx watch --clear-screen=false --ignore \"./vite.config.ts.timestamp*\" server.ts"
}
} See That seemed to fix the issue for me. |
After following the link that nick-cheatwood7 posted, I found that upgrading to Vite 6+ has removed this issue as Vite is now creating these temporary files within the node_modules folder. It seems nodemon is now not necessary to run vite-express in a dev environment at all. |
I just made a vite-express app with bun, and when I run it in dev (I changed it from nodemon to bun run --watch instead) it keeps rerunning over and over.
(when using nodemon it works as usual, I changed it to
nodemon -w src/server/main.ts -x bun run src/server/main.ts
so that bun is used)The text was updated successfully, but these errors were encountered: