lifesound's avatar

Laravel vite connection refused

I have this error in the production

GET http://127.0.0.1:517/@vite/client net::ERR_CONNECTION_REFUSED
login:17          GET http://127.0.0.1:517/resources/css/app.css net::ERR_CONNECTION_REFUSED

the CSS file is not load although I did npm run build and they are in the same server and this exists

    @vite(['resources/css/app.css')

when I watch the HTML source I found this

  <script type="module" src="http://127.0.0.1:517/@vite/client"></script><link rel="stylesheet" href="http://127.0.0.1:517/resources/css/app.css" /></head>
0 likes
13 replies
thinkverse's avatar
Level 15

Seems you have run npm run dev before and the public/hot file wasn't destroyed when you stopped running it. Removing the hot file should solve your issue.

26 likes

Please or to participate in this conversation.