Improve logs to make life more easy by showing affected page / component at least
See original GitHub issueDescribe the feature
I’m currently migrating my site built with Gridsome to Nuxt. In the process, I’m running into errors such as this
[nuxt] [request error] [unhandled] [500] nuxt instance unavailable
at Module.useNuxtApp (./.nuxt/dist/server/server.mjs:479:13)
at Module.useHead (./.nuxt/dist/server/server.mjs:1580:25)
at $id_0ptq61qRX8 (./.nuxt/dist/server/server.mjs:3027:23)
at async __instantiateModule__ (./.nuxt/dist/server/server.mjs:7310:3)
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
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
10+ Java Logging Best Practices: Get the Most Out of Your ...
Use these Java logging best practices to get better insights into your app and environment, save time troubleshooting & deliver the best ...
Read more >Best Practices for Client-Side Logging and Error Handling ...
One way to improve our logging capabilities is by using a client-side logging library such as loglevel. Loglevel replaces the typical console.
Read more >The Power of Small Wins
This progress principle suggests that managers have more influence than they may realize over ... Even small wins can boost inner work life...
Read more >10 Strategies for Better Time Management
Learn 10 strategies for better time management, including knowing how to spend your time, setting priorities, using planning tools, getting organized, ...
Read more >Carol Dweck: A Summary of Growth and Fixed Mindsets
There are two main mindsets we can navigate life with: growth and fixed. Having a growth mindset ... Dweck's work shows the power...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should now be the default option on edge releases, and if you aren’t there yet you can enable
experimental.viteNode
.You will get an error that looks like this instead:
(You can also try looking at the line of the
server.mjs
in the console log and you should be able to see what component it is coming from.)I didn’t know that sub directories have an impact on the component name. Thanks, I’ll try that