vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.96k stars 6.23k forks source link

Livewire 3 - Laravel 11 - Tailwind CSS double refresh issue with HMR #18757

Closed FHoulbreque closed 3 days ago

FHoulbreque commented 4 days ago

Describe the bug

While progressing through development of my code (here it's coming from a course on Laracast) I encountered a strange behaviour with HMR:

Reproduction

https://github.com/FHoulbreque/vite-livewire-hmr-bug

Steps to reproduce

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (24) x64 AMD Ryzen 9 7900X 12-Core Processor            
    Memory: 48.09 GB / 63.64 GB
  Binaries:
    Node: 18.20.4 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.105)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vite: ^5.0 => 5.4.11

Used Package Manager

npm

Logs

No response

Validations

sapphi-red commented 3 days ago

Your reprodution is 404.

github-actions[bot] commented 3 days ago

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

FHoulbreque commented 3 days ago

Your reprodution is 404.

My bad, forgot to set the repository to public. Solved.

sapphi-red commented 3 days ago

It seems you are using laravel-vite-plugin. It might be caused by the plugin. Please report it there, thanks. If you can trim the reproduction down removing the plugin or if you find out that this is caused by Vite itself, feel free to reopen it.