Aug 10, 2022
0
Level 1
Problem with Laravel 9 and Vite in combination with vagrant
Hello, I created a new project to get in touch with the "new" Laravel update. I installed anything that I needed Inertia, Breeze, etc. But if I try to run the dev Server with vite it throws me errors in the console all the time. Are there some extra adjustments in case working with vite and vagrant?
This is the Vite Config...
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.js',
ssr: 'resources/js/ssr.js',
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
});
The Error that throws in the console at FF
firefox can't establish a connection to the server ws://domain.test:3000/ aufbauen. client.ts:22:15
[vite] server connection lost. polling for restart...
And after that, it throws every second
GET http://domain.test/__vite_ping
I'm new to the vite package so I'm sorry if that might be an easy question. But I would appreciate any kind of help! :)
Please or to participate in this conversation.