Using Octane --watch with Vite HMR #51937
Unanswered
munezaclovis
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@munezaclovis any new workaround? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Found a solution while developing locally. Don’t use “—watch” and use “—max-requests=1” So, Octane will not put the code in cache. And Vite does its jobs refreshing the page when code changes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody
I have a problem.
I am using Livewire, Octane with the --watch option to reload my server when I make new changes and I also have Vite HMR.
Whenever I save changes, most of the times I get back an empty html page. these are the contents of the page:

My guess is that vite is fast that it reloads the browser before Octane finishes restarting the server therefore getting an empty page.
So far, I tried adding a delay of 2 seconds to the vite config but it just sucks sometimes.
Does anybody else have this issue? Maybe suggestions to fixing this? Am i doing something wrong?
THANK YOU!
Beta Was this translation helpful? Give feedback.
All reactions