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

'builder:watch' hook isn't released when nuxt.config is updated #27570

Closed
danielroe opened this issue Jun 12, 2024 · 1 comment · Fixed by #27571
Closed

'builder:watch' hook isn't released when nuxt.config is updated #27570

danielroe opened this issue Jun 12, 2024 · 1 comment · Fixed by #27571

Comments

@danielroe
Copy link
Member

danielroe commented Jun 12, 2024

I noticed that the 'builder:watch' hook won't be release after the nuxt.config is updated. As the dev server is restarted, this hook will be registered multiple times.

I don't know if this behavior is expected, but it never happened when I was developing modules three months ago. There may be some similarities between these issues.

Originally posted by @Teages in #27515 (comment)

@nuxtbot nuxtbot changed the title 'builder:watch' hook isn't released when nuxt.config is updated "build/watch hook is not released when nuxt.config is updated" Jun 12, 2024
@danielroe danielroe changed the title "build/watch hook is not released when nuxt.config is updated" 'builder:watch' hook isn't released when nuxt.config is updated Jun 12, 2024
Copy link
Contributor

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a couple of templates for starting with a minimal reproduction:

👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
👉 https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

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

Successfully merging a pull request may close this issue.

2 participants