Vite page reload on terminal but not refresh browser

Hello everyone, auto reload doesnt work for me. on terminal it says vite page reload but browser is not being refresh. help me please!
Solution:
Coding Wisely
Enhancing Laravel Filament V3 Development with Vite and Livewire Ho...
As a developer, rapid iteration and real-time feedback are crucial for efficient web development. In this article, we delve into the integration of Vite and Livewire hot reload into Laravel...
Jump to solution
36 Replies
wailerz
wailerz7mo ago
is this possible when im adding form inputs?
awcodes
awcodes7mo ago
Yes. If you define the right refresh paths in your Vite.config.js.
wailerz
wailerz7mo ago
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js', 'app/Filament/**'],
refresh: [
...refreshPaths,
'app/Livewire/**',
'app/Filament/**'
],
// refresh: true,
}),
],
});
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js', 'app/Filament/**'],
refresh: [
...refreshPaths,
'app/Livewire/**',
'app/Filament/**'
],
// refresh: true,
}),
],
});
in my terminal it says [vite] page reload but the input is not showing up
awcodes
awcodes7mo ago
Looks ok to me. Are you serving the app on ‘localhost’ or via valet/herd?
wailerz
wailerz7mo ago
localhost using sail
awcodes
awcodes7mo ago
Ok. Not going to be of much help there.
wailerz
wailerz7mo ago
but it should refresh right? auto reload works with app/Filament?
awcodes
awcodes7mo ago
Vite works best in laravel with an actual tld though. So it’s probably something to do with sail. Sorry, not sure then. Typically though, localhost needs the port number too to work correctly. Maybe try a google search or laracasts forum search to see if others have had similar issues. But I would be surprised if it had anything to do with Filament.
wailerz
wailerz7mo ago
i mean, its suppose to reload right? if i wasa working with valet/herd
awcodes
awcodes7mo ago
I would assume so.
wailerz
wailerz7mo ago
ok. thanks. im going to look for alternative ok. i got it working with laragon
Solution
wailerz
wailerz7mo ago
Coding Wisely
Enhancing Laravel Filament V3 Development with Vite and Livewire Ho...
As a developer, rapid iteration and real-time feedback are crucial for efficient web development. In this article, we delve into the integration of Vite and Livewire hot reload into Laravel...
wailerz
wailerz7mo ago
yeah.. geez...
awcodes
awcodes7mo ago
😂🤪
wailerz
wailerz7mo ago
i thought its wsl2 thing.. thank god. i can start developing now
Want results from more Discord servers?
Add your server