Skip to content
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

Vite server constantly restarting because of file change #14126

Closed
7 tasks done
TNAJanssen opened this issue Aug 16, 2023 · 2 comments
Closed
7 tasks done

Vite server constantly restarting because of file change #14126

TNAJanssen opened this issue Aug 16, 2023 · 2 comments
Labels
bug: upstream Bug in a dependency of Vite needs reproduction

Comments

@TNAJanssen
Copy link

TNAJanssen commented Aug 16, 2023

Describe the bug

When i start the Vite server, it constantly restarts and stays in a loop where it "detects" a file change and restarts again.
I even got it once on a completely new project, and it blocks me from writing any code at the moment.

I almost looks the same as #13764 and storybookjs/storybook#22253

Afeter ignoring all files that can restart the server it seems okay to work, but it doesn't give a satisfying feeling.

Reproduction

n/a

Steps to reproduce

No response

System Info

System:
    OS: macOS 13.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.48 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.0.0 - ~/.nvm/versions/node/v20.0.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.0.0/bin/yarn
    npm: 9.6.5 - ~/.nvm/versions/node/v20.0.0/bin/npm
  Browsers:
    Brave Browser: 114.1.52.130
    Firefox: 111.0.1
    Firefox Developer Edition: 115.0
    Safari: 16.6
    Safari Technology Preview: 17.0
  npmPackages:
    @vitejs/plugin-react: ^4.0.4 => 4.0.4
    vite: ^4.4.9 => 4.4.9

Used Package Manager

npm

Logs

2:18:27 PM [vite] server restarted.
2:18:27 PM [vite] apps/backoffice/vite.config.ts changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.defaults changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.dev changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.production changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.staging changed, restarting server...
2:18:27 PM [vite] server restarted.
2:18:27 PM [vite] apps/backoffice/vite.config.ts changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.defaults changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.dev changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.production changed, restarting server...
2:18:27 PM [vite] apps/backoffice/.env.staging changed, restarting server...
2:18:28 PM [vite] server restarted.
2:18:28 PM [vite] apps/backoffice/vite.config.ts changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.defaults changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.dev changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.production changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.staging changed, restarting server...
2:18:28 PM [vite] server restarted.
2:18:28 PM [vite] apps/backoffice/vite.config.ts changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.defaults changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.dev changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.production changed, restarting server...
2:18:28 PM [vite] apps/backoffice/.env.staging changed, restarting server...

Validations

@github-actions
Copy link

Hello @TNAJanssen. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@segevfiner
Copy link
Contributor

Tried to debug it a little in some setup I have and it looks to me like this is the cause: paulmillr/chokidar#1286

@bluwy bluwy added the bug: upstream Bug in a dependency of Vite label Aug 18, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: upstream Bug in a dependency of Vite needs reproduction
Projects
None yet
Development

No branches or pull requests

4 participants