Check the browser console for errors
Laravel 9 + WSL2 + Vite issue
Hi
Info: Laravel 9.22 + breeze
I have laravel 9.22 on Ubuntu subsystem (WSL2). When I run sail npm run dev I got
VITE v3.0.3 ready in 399 ms
➜ Local: http://localhost:5173/
➜ Network: http://172.28.0.7:5173/
LARAVEL v9.22.1 plugin v0.5.2
➜ APP_URL: http://my-workout.test
But when I view application on the browser and I click Login on login screen nothing change and when I'm visiting /register there are no lables of form.
On the sourcoe code I have thoes:
<!-- Styles -->
<link rel="stylesheet" href="http://localhost/css/app.css">
<!-- Scripts -->
<script src="http://localhost/js/app.js" defer></script>
On the vite.config.js I add
server: {
hmr: {
host: 'localhost'
}
}
Can someone had the same problem?
Ok I realize that something was wrong with the cache view and it hold old view with wrong URL to .css and .js Artisan comands don't works and I manualy remove the cache files from storage and everyting works fine!
BTW. I need to make npm run dev not in the docker. But this is issie that I know.
Please or to participate in this conversation.