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
wailerzOP9mo ago
is this possible when im adding form inputs?
awcodes
awcodes9mo ago
Yes. If you define the right refresh paths in your Vite.config.js.
wailerz
wailerzOP9mo 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
awcodes9mo ago
Looks ok to me. Are you serving the app on ‘localhost’ or via valet/herd?
wailerz
wailerzOP9mo ago
localhost using sail
awcodes
awcodes9mo ago
Ok. Not going to be of much help there.
wailerz
wailerzOP9mo ago
but it should refresh right? auto reload works with app/Filament?
awcodes
awcodes9mo 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
wailerzOP9mo ago
i mean, its suppose to reload right? if i wasa working with valet/herd
awcodes
awcodes9mo ago
I would assume so.
wailerz
wailerzOP9mo ago
ok. thanks. im going to look for alternative ok. i got it working with laragon
Solution
wailerz
wailerz9mo 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
wailerzOP9mo ago
yeah.. geez...
awcodes
awcodes9mo ago
😂🤪
wailerz
wailerzOP9mo ago
i thought its wsl2 thing.. thank god. i can start developing now
awcodes
awcodes9mo 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
wailerzOP9mo ago
didnt know there is a due windows release
awcodes
awcodes9mo ago
Also why I use a Mac and can justify the expense. But no shade.
wailerz
wailerzOP9mo ago
thanks for the info i will switch to mac soon
awcodes
awcodes9mo ago
Glad you got it working though.
wailerz
wailerzOP9mo ago
time to ditch gaming laptop aka portable pc
awcodes
awcodes9mo ago
It’s so nice on Mac.
wailerz
wailerzOP9mo ago
initially was afraid of terminal when i bought this laptop then switch to wsl2 happen
awcodes
awcodes9mo 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
wailerzOP9mo 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
awcodes9mo 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
wailerzOP9mo ago
yeah.. just the other day. i was stuck making sail work on wsl2 3days wasted
awcodes
awcodes9mo 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
wailerzOP9mo ago
haha but ive decided. i will switch to mac soon. going to embraee linux
awcodes
awcodes9mo 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
wailerzOP9mo ago
yeah. thank you sir. its 7am here now. time to rest. finally. everything is working. i can focus on developing now
awcodes
awcodes9mo ago
Get some rest. 😀 7pm here lol:
wailerz
wailerzOP9mo ago
thanks!! dinner time
awcodes
awcodes9mo ago
Sounds like breakfast for you.
wailerz
wailerzOP9mo ago
my working hours is at night. which is very bad tbh..
awcodes
awcodes9mo ago
What ever pays the bills.
Want results from more Discord servers?
Add your server