reactjscreate-react-appstack-tracesource-maps

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


Running create-react-app in development mode:

Why do my console errors link to minified code chunks? I thought I remember CRA being able to show the source mapped files.

console error


Solution

  • This is because the error was thrown by one of the dependencies you used. When you install a package, you get a minified-production-build version on your node_modules. We can see from the stack traces, that the error was located in vendors~main.chunk.js.