question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve logs to make life more easy by showing affected page / component at least

See original GitHub issue

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

[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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
danielroecommented, Aug 24, 2022

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:

✔ 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 server.mjs in the console log and you should be able to see what component it is coming from.)

0reactions
mkluehcommented, Sep 1, 2022

Looks like it should possibly be named <RecommendationsBookRecommendationBox />

I didn’t know that sub directories have an impact on the component name. Thanks, I’ll try that

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found