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
wailerz3mo ago
is this possible when im adding form inputs?
awcodes
awcodes3mo ago
Yes. If you define the right refresh paths in your Vite.config.js.
wailerz
wailerz3mo 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
awcodes3mo ago
Looks ok to me. Are you serving the app on ‘localhost’ or via valet/herd?
wailerz
wailerz3mo ago
localhost using sail
awcodes
awcodes3mo ago
Ok. Not going to be of much help there.
wailerz
wailerz3mo ago
but it should refresh right? auto reload works with app/Filament?
awcodes
awcodes3mo 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
wailerz3mo ago
i mean, its suppose to reload right? if i wasa working with valet/herd
awcodes
awcodes3mo ago
I would assume so.
wailerz
wailerz3mo ago
ok. thanks. im going to look for alternative ok. i got it working with laragon
Solution
wailerz
wailerz3mo 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
wailerz3mo ago
yeah.. geez...
awcodes
awcodes3mo ago
😂🤪
wailerz
wailerz3mo ago
i thought its wsl2 thing.. thank god. i can start developing now
awcodes
awcodes3mo ago
Valet and herd make it really easy. I think the window version of herd is scheduled for release in the next week or so. If it hasn’t been released already. Just one of those caveats to developing in windows.
wailerz
wailerz3mo ago
didnt know there is a due windows release
awcodes
awcodes3mo ago
Also why I use a Mac and can justify the expense. But no shade.
wailerz
wailerz3mo ago
thanks for the info i will switch to mac soon
awcodes
awcodes3mo ago
Glad you got it working though.
wailerz
wailerz3mo ago
time to ditch gaming laptop aka portable pc
awcodes
awcodes3mo ago
It’s so nice on Mac.
wailerz
wailerz3mo ago
initially was afraid of terminal when i bought this laptop then switch to wsl2 happen
awcodes
awcodes3mo ago
Well you already have the gaming laptop. It’ll still be there when you get the Mac too. Right tool for the job, right?
wailerz
wailerz3mo ago
yeah. but i would love to switch to mac. because this machine needs to be plugged when using it. it only last an hour or less. lol. normal for gaming laptop
awcodes
awcodes3mo ago
Yea, the whole terminal shitshow on windows is ridiculous. But we have to do what we have to do. There’s also the whole issue of developing on windows when 99% or your servers aren’t IIS and are based on Unix or Linux, so developing on Mac or Linux just makes a lot more sense. It’s closer to the metal by default.
wailerz
wailerz3mo ago
yeah.. just the other day. i was stuck making sail work on wsl2 3days wasted
awcodes
awcodes3mo ago
Don’t doubt it. But I’m also biased and hate docker. 😂 I don’t need or want the abstraction for something the machine can just do out of the box.
wailerz
wailerz3mo ago
haha but ive decided. i will switch to mac soon. going to embraee linux
awcodes
awcodes3mo ago
Either will be better than windows. But do what’s right for you. Don’t get me wrong though, windows has its place too. Just not in what we do. IMHO.
wailerz
wailerz3mo ago
yeah. thank you sir. its 7am here now. time to rest. finally. everything is working. i can focus on developing now
awcodes
awcodes3mo ago
Get some rest. 😀 7pm here lol:
wailerz
wailerz3mo ago
thanks!! dinner time
awcodes
awcodes3mo ago
Sounds like breakfast for you.
wailerz
wailerz3mo ago
my working hours is at night. which is very bad tbh..
awcodes
awcodes3mo ago
What ever pays the bills.
Want results from more Discord servers?
Add your server
More Posts