0

I saw two similar questions, which are still no one answer, I would want to raise this question again.

Minified component stack trace in create-react-app (dev mode)

Create-react-app console shows chunk files

May I know how can display the actual line which causes the issue in the console? I tried to click the chunk.js file, which only redirects to the first line of its file.

Martin TT
  • 301
  • 2
  • 16

1 Answers1

0

Try the pretty print option to beautify the chunk.js file, which would then jump to the line causing the error (see the GIF below). You might still see the uglified variable names, if no source map is available.

More info: https://www.canidev.tools/pretty-print-js

enter image description here

Pankaj Parashar
  • 9,762
  • 6
  • 35
  • 48