New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routes not registered when file created from code snippet via IDE on Windows #13791
Comments
Thanks for opening. Does it make a difference if you enable |
import { defineNuxtConfig } from 'nuxt3';
export default defineNuxtConfig({
hooks: {
'builder:watch': console.log,
},
+ vite: {
+ server: {
+ watch: {
+ usePolling: true
+ }
+ }
+ }
}); No changes, 3 attempts failed: Log
From my very limited experience of serious computer stuff, file watchers on Windows are tricky, the homemade solution one of my co-workers came up with similar issue in JustArchiNET/ArchiSteamFarm was to ignore change emitted less than 500ms after create. Apparently the events on Windows can also come in wrong order, |
still not working, it's annoying |
Follow-up from closed #13725, credits to OP @metamist.
Environment
Windows_NT
v16.13.2
3.0.0-27501460.04a72f8
npm@8.5.0
vite
hooks
-
-
WebStorm 2022.1
Build #WS-221.5080.193, built on April 10, 2022
Reproduction
test.vue
)Describe the bug
File watcher does not seem to detect when file
pages/test.vue
isadd
ed, it only detectschange
. This leads to the route not being registered until dev server is restarted.Additional context
Logs generated with @danielroe suggested:
Opening the issue with better description and reproduction as the author from original #13725 decided to close.
While Windows specific, this is a big hindrance on Windows DX.
Logs
Reproduction:
Correct flow ("New > File" instead of "New > Vue Component")
The text was updated successfully, but these errors were encountered: