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
showError doesn't trigger app:error
(anymore?)
#27152
Comments
Start a new pull request in StackBlitz Codeflow. |
This seems to be working for me. You can see the implementation here, which does call the hook: nuxt/packages/nuxt/src/app/composables/error.ts Lines 18 to 40 in 8a759bc
|
Would you be able to provide a reproduction? 🙏 More infoWhy 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 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 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: |
Oh, now it indeed started working again. My repro 100% did not work before (and I had the same behaviour locally), so maybe this was fixed in the meantime? Anyway: this can be closed it seems! |
Hm. I don't know what might have been causing this to fail, but it should be purely a Nuxt behaviour, and one that hasn't changed since you opened the repro... |
Environment
Reproduction
https://stackblitz.com/edit/github-khtc7d?file=plugins%2Ferror-handler.js,app.vue
Describe the bug
showError is supposed to trigger the
app:error
hook.However this doesn't seem to work (anymore). I'm sure it used to work in the past.
You can see the hook registering properly in the plugin, but the actual log message on error never shows up.
I also tried throwing
createError
, but that also yields no results.Additional context
I noticed the docs now discourage using
showError
, which is new to me, but that has the same result.Logs
No response
The text was updated successfully, but these errors were encountered: