roots / sage

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow
https://roots.io/sage/
MIT License
12.77k stars 3.06k forks source link

Port 3000 extremely slow when run watch #3198

Closed ThomasPof closed 1 month ago

ThomasPof commented 1 month ago

Version

10.8.2

What did you expect to happen?

No delay in request when loading page via run start

What actually happens?

npm run dev browser takes upwards of 20 seconds for each single request when hitting from localhost:3000

Loading the site at http://example.dev achieves respectable requests of less that 400ms. this is the case regardless of if npm run dev is running or not.

Steps to reproduce

It takes less than 400ms to load on my local URL, with or without the

Capture d’écran 2024-10-14 à 16 28 25

But when i'm on localhost:3000, I'm reaching more than 20s of loading time.

Capture d’écran 2024-10-14 à 16 33 18

Do you have any clue ? Thank you

System info

Node v16.20.2 NPM 8.19.4 Same thing is happening with node v20

Docker with php 8.3, nginx and mysql. But the situation is the same with MAMP instead of Docker

Log output

No response

Please confirm this isn't a support request.

Yes

ThomasPof commented 1 month ago

Everything is fine after clearing the npm cache and rebooting my computer...