Nuxt.js: Trackback for errors during SSR shows "Missing stack frames"

Created on 31 Oct 2019  ·  12Comments  ·  Source: nuxt/nuxt.js

Version

v2.10.2

Reproduction link

https://codesandbox.io/s/ssr-error-uvu26

Steps to reproduce

Just open the reproduction link...

OR

  1. Cause an error in a component which means the SSR of a page will fail (see example)
  2. Navigate to the dev server URL fresh (i.e. not open already)
  3. You see the following error page, but the stack trace says "Missing stack frames" and some of the file names and line numbers are not showing correctly either
  4. Looking at the terminal too, the information emitted does not give any reference to a line number either

SSR Fail 2.png

Terminal.png

What is expected ?

Accurate tracebacks with correct file names, line numbers and file contents.

What is actually happening?

Missing tracebacks, confusing file names and line numbers.

Additional comments?

I have experimented with various settings for build config.devtool and these do appear to affect what is shown in the traceback, but I couldn't find a value that actually made it work correctly.

If you happen to trigger the error while you have a live frontend open (of force it by setting mode: 'spa'), the browser dev tools are able to find the correct lines in the debugger.

This bug report is available on Nuxt community (#c9965)
bug-report pending

All 12 comments

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

Still awaiting response.

I'm also interested in this. Line numbers for these errors would be mightily helpful.

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

Still awaiting response.

Given the bug report is provided with full details, and a clean reproduction link, it's quite disappointing that there has been absolutely no comment from the developers whatsoever.

Any update on this?

Very necessary, I'm very lost searching in all my files after a migration from Pure Vue to Nuxt.

Yes, just yesterday I guided someone new to the project through an error in asyncData(). They are an experienced developer but new to Nuxt.

It was a simple enough error, an axios XHR request had 404’d, but they only had:

NuxtServerError
Request failed with status code 404.
Missing stack frames

…and a trace that only references files and line numbers from Nuxt internal processes.

9C0EB165-8115-484D-BCCF-100B631A5C4B

Without a file and line number next to “Request failed with status code 404” they were understandably lost and frustrated.

_I love using Nuxt and what it gives me, thank you team, but it’s hard to defend it when developers run into this so early in their experience._

Using Nuxt v2.10.2

Hi all. I can understand how much frustration it sometimes brings when stack traces are not available. The first issue will be improved by #7463. @mkstix6 Axios HTTP request traces are unfortunately not traceable because of how it throws the error. I will try to find a solution for it meanwhile any contribution to improvement is more than welcome :)

I would love to see debugging a bit improved. Often I experience a bug, and get the "Missing stack frames" error. The trace in the console points to a minified file, so I have no idea where to start debugging.

Same here.

image

Now i'm searching which products is undefined exactly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  ·  3Comments

maicong picture maicong  ·  3Comments

bimohxh picture bimohxh  ·  3Comments

danieloprado picture danieloprado  ·  3Comments

shyamchandranmec picture shyamchandranmec  ·  3Comments