Check if you have a file named hot in the public directory. Delete it
Oct 11, 2022
13
Level 2
Vite error ( not showing CSS styles)
I have hosted an app to a Server, and everything is fine except that the Vite file causes two errors on my Browser.
Failed to load resource: net::ERR_CONNECTION_REFUSED 5173/@vite/client:1
..... 5173/resources/js/app.js:1
layouts/app
@vite('resources/css/app.css','resources/js/app.js')
vite.config.js
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
});
Level 102
You vite helper is wrong. It should be an array
@vite(['resources/js/app.js','resources/css/app.css'] )
Please or to participate in this conversation.