Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

morawcik's avatar

Can't get it work after using build command

Hi. I have fresh laravel project with tailwind css and using vite dev it works without problem but when i'm using build command i can't get it work without running dev again because it's trying to load vlite client, app.css and app.js from http://127.0.0.1:5174 What i'm doing wrong?

0 likes
7 replies
Sinnbeck's avatar

Run build again, and try clearing your view cache php artisan view:clear

Sinnbeck's avatar

@morawcik What exactly happens in the browser when dev isnt running? Any errors in the console?

morawcik's avatar

Page is in endless loading, no console error only in network tab i have this:

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@morawcik Check your /public directory. My guess is that vite failed to delete the hot file when you stopped the dev server. Delete it manually.

1 like
morawcik's avatar

@Sinnbeck Indeed it was there and after deleting this file it works, thank you. Seems like I'm stopping dev wrong?

Please or to participate in this conversation.