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 "watch" hangs after first change since v4.2 #12852

Closed
7 tasks done
Diggsey opened this issue Apr 13, 2023 · 3 comments
Closed
7 tasks done

Vite "watch" hangs after first change since v4.2 #12852

Diggsey opened this issue Apr 13, 2023 · 3 comments

Comments

@Diggsey
Copy link

Diggsey commented Apr 13, 2023

Describe the bug

I run:

vite build --watch --minify false --mode development

The build completes successfully. I then make a change to a file, triggering a rebuild. The rebuild will hang after printing:

build started...

Sometimes it will print an additional line like :

build started...
transforming (xxx)  <filename>

But there doesn't appear to be any correlation between the filename and the build, it's just a random file from the project.

Reproduction

Diggsey/dpass@8badbb0

Steps to reproduce

Clone the repo and install dependencies as usual for an npm project. Run:

vite build --watch --minify false --mode development

Save any file triggering a rebuild.

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 15.86 GB / 31.68 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.2.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.39)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    vite: ^4.2.0 => 4.2.0

(Also reproduced on linux.)

Used Package Manager

npm

Logs

No response

Validations

@Diggsey
Copy link
Author

Diggsey commented Apr 13, 2023

Based on the changelog, I am suspicious of #11908

@Diggsey
Copy link
Author

Diggsey commented Apr 13, 2023

I've also tried enabling logging and debug output, but vite outputs nothing useful. This seems like a bug in and of itself: vite should really provide some output logs that can be used to diagnose issues like this...

@bluwy
Copy link
Member

bluwy commented Apr 14, 2023

Duplicate of #12791. Fixed in #12797

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants