-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
nuxt.options.watch not restarting dev server #22272
Copy link
Copy link
Closed
Labels
Description
Environment
npx nuxi info
Nuxi 3.6.2 16:43:20
16:43:20
RootDir: D:/work/projects/userquin/GitHub/userquin/vuetify-nuxt-module-main-2 16:43:20
Nuxt project info: 16:43:20
------------------------------
- Operating System: Windows_NT
- Node Version: v18.16.0
- Nuxt Version: 3.6.2
- Nitro Version: 2.5.2
- Package Manager: pnpm@8.6.9
- Builder: vite
- User Config: -
- Runtime Modules: -
- Build Modules: -
------------------------------Reproduction
https://github.com/userquin/vuetify-nuxt-module/tree/userquin/feat-add-external-vuetify-config-file
Remove the following lines:
- https://github.com/userquin/vuetify-nuxt-module/blob/userquin/feat-add-external-vuetify-config-file/src/utils/layers.ts#L29-L30
- https://github.com/userquin/vuetify-nuxt-module/blob/userquin/feat-add-external-vuetify-config-file/src/utils/layers.ts#L53-L54
Remove the following hook:
Register the paths in nuxt.options.watch (uncomment next line):
Install dependencies pnpm install and run dev server nr dev, open the app in the browser, once the app loaded, change any vuetify config file:
playground/vuetify.config.mts: changeMyBadge: 'VBadge',toMyXXBadge: 'VBadge',- or
playground/layers/vuetify-layer/vuetify.config.ts: changeMyAvatar: 'VAvatar',toMyXXAvatar: 'VAvatar',
Once changed, the dev server should restart, but it doesn't.
Describe the bug
When adding files to watch in nuxt.options.watch, they should be relative to the srcDir, but the path received in the callback seems to be always absolute paths, and so there is no dev server restart.
Additional context
Logs
No response
Reactions are currently unavailable
