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
Improve logs to make life more easy by showing affected page / component at least #14684
Comments
This should now be the default option on edge releases, and if you aren't there yet you can enable You will get an error that looks like this instead: ✔ Nitro built in 1764 ms
[Vue warn]: Unhandled error during execution of setup function
at <App>
[nuxt] [request error] [unhandled] [500] nuxt instance unavailable
at Module.useNuxtApp (./node_modules/.pnpm/nuxt3@3.0.0-rc.8-27688153.422d5c4/node_modules/nuxt3/dist/app/nuxt.mjs:141:13)
at Module.useBad (./composables/bad.ts:5:37)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async setup (./app.vue:17:3) (You can also try looking at the line of the |
Hi @danielroe , that indeed helped quite a bit, but not to that extend I would like. For example:
Now I know there is a problem in the blog page, but what exactly? If I use dozens of components within that page, there might as well be a problem within one of those components that results in an error of the actual page. It is not even clear to me what a weak map key actually is, to be honest, and what value is meant is also unclear to me. Can't there be something simple like "Could not load page x because of component y having issue z"? |
@mklueh This is actually a bug in Vue I have an open PR to fix: vuejs/core#6266. It is triggered by using a component on the server that isn't registered on the server. If you look a few lines up in the log you should see what component it is: #11740 |
@danielroe in my case it seems at least this time it is related to a missing import statement, although I thought auto imports should make it work without it. not working
working
It is only happening in this case, while other components work with auto imports most of the time. |
Looks like it should possibly be named |
I didn't know that sub directories have an impact on the component name. Thanks, I'll try that |
Describe the feature
I'm currently migrating my site built with Gridsome to Nuxt. In the process, I'm running into errors such as this
From a dev perspective, this is a nightmare. I don't know where to search first, but I have to go through all of my files by trial and error. I wish there would be even a vague hint of what it could be, and which page / component is causing it so finding the issue won't take hours.
Additional information
Final checks
The text was updated successfully, but these errors were encountered: