Hot Reload Not Working with Vite on a Clean Orchid Installation #2790
SharkJohny
started this conversation in
General
Replies: 1 comment
-
Hard to say without any provided configuration. My guess Vite doesn't watch changes in Orchid directory. Try to extend default Laravel's refresh paths with Orchid directory import laravel, { refreshPaths } from 'laravel-vite-plugin'
export default defineConfig({
plugins: [
laravel({
input: [
// entrypoints
],
refresh: [
...refreshPaths,
'app/Orchid/**',
],
}),
],
}) P.S. You may add conditional guard in order for HMR to work |
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
Uh oh!
There was an error while loading. Please reload this page.
-
How can I resolve an issue where hot reload is not working with Vite? On a clean Laravel installation with Vite, everything works fine, but on a clean Orchid installation, hot reload doesn't seem to function. Any suggestions or solutions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions