nuxt/nuxt

watch components directories inside same monorepo

Fechada

#12.350 aberto em 17 de jan. de 2023

 (3 comentários) (0 reação) (0 responsável)TypeScript (5.607 forks)batch import
good first issue🛠️ dx

Métricas do repositório

Stars
 (60.221 estrelas)
Métricas de merge de PR
 (Mesclagem média 3d 7h) (114 fundiu PRs em 30d)

Description

Environment


  • Operating System: Linux
  • Node Version: v16.19.0
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: yarn@3.3.1
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  1. Create a Nuxt "UX Library" Module that provides components and performs auto loading of those.
  2. Use the Module in your application.
  3. Start the application
  4. Add a new component to the Nuxt Module

The component won't be found until the application is restarted.

Describe the bug

Newly added components are not added to components.d.ts of application during development and require a restart of the application to take effect.

Is there any way to get the same behavior of the module, that the application already has so newly added components trigger a refresh?

Additional context

No response

Logs

No response

Guia do colaborador