Skip to content
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

'chokidar-granular' doesn't roload Nuxt while using NuxtKit/addLayout #26894

Open
ilyamsts opened this issue Apr 22, 2024 · 2 comments
Open

'chokidar-granular' doesn't roload Nuxt while using NuxtKit/addLayout #26894

ilyamsts opened this issue Apr 22, 2024 · 2 comments

Comments

@ilyamsts
Copy link

ilyamsts commented Apr 22, 2024

Environment

  • Operating System: Linux
  • Node Version: v20.9.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@10.1.0
  • Builder: -
  • User Config: runtimeConfig, primevue, devtools, alias, appDir, dir, modules, css
  • Runtime Modules: @pinia/nuxt@0.5.1, nuxt-primevue@0.3.1, @nuxtjs/i18n@8.3.0, @nuxt/eslint@0.3.7
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-vgjcn4?file=app.vue

  1. npm run dev
  2. try to change something in externalLayouts/default.vue file
  3. chokidar-granular doesn't roload nuxt

Describe the bug

While using NuxtKit/addLayout in module to custom adding layouts (without using folder 'layouts') - chokidar-granular doesn't reload Nuxt after changes have made in that vue layouts files

Additional context

No response

Logs

No response

Copy link

stackblitz bot commented Apr 22, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@ilyamsts ilyamsts changed the title 'chokidar-granular' doesn't roload Nuxt while using NuxtKit/addLayout() 'chokidar-granular' doesn't roload Nuxt while using NuxtKit/addLayout Apr 22, 2024
@RyanClementsHax
Copy link
Contributor

I'm able to reproduce this issue.

I'm not sure if this is supported as I don't see any documentation on how addLayout works with HMR so I'll wait for a maintainer to weigh in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants