-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
server.origin
breaks HMR (tailwind JIT)
#5408
Comments
Also seeing the same thing on 2.6.x, rolling back to 2.5.10 fixes this issue. |
Can't find the file |
@OneNail my mistake… I've updated the readme. In both cases the file that should be edited is |
Am seeing this issue as well |
FWIW, here's an issue from someone else who got this issue with Laravel Vite (https://github.com/innocenzi/laravel-vite/issues/146). I'm not sure how |
Hello @leevigraham. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I switched the node version to 12.x and this problem was reproduced, I removed the |
@OneNail Oh I didn't even think about an older version of node being a possible issue. Could you reproduce the issue with node 14 / 16? |
I tried the 14.x version, it works fine. |
@khalwat @engram-design Can you confirm the issue is fixed on Node 14 / 16… It doesn't seem to be for me here. |
I use Node 14 on Windows, so I know it's not fixed there. I will update to Node 16 and test it out. |
The issue still exist on Node 16. |
Describe the bug
Setting the
server.origin
property invite.config.ts
breaks tailwind JIT hmr.Fixing the vite version to 2.5.10 fixes the issue (server.origin didn't exist so that makes sense).
Reproduction steps in the repro README: https://github.com/leevigraham/vite-hmr-issue-repro/blob/main/README.md
Reproduction
https://github.com/leevigraham/vite-hmr-issue-repro
This is the simplest repro I could make. It uses the built in vite dev server.
System Info
System: OS: macOS 11.6 CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Memory: 85.16 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.22.4 - /usr/local/bin/node npm: 6.14.14 - /usr/local/bin/npm Browsers: Chrome: 95.0.4638.54 Edge: 90.0.818.56 Firefox: 88.0 Firefox Developer Edition: 94.0 Safari: 15.0 Safari Technology Preview: 15.4 npmPackages: vite: ^2.6.4 => 2.6.10
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: