Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #10931
Closed
Open
Issue created May 07, 2021 by Administrator@rootContributor

Error stack traces are ridiculously long and verbose

Created by: DouglasDev

I'm talking about stack traces like this one that are so long that they won't even fit on my very large monitor: Screen Shot 2021-05-07 at 11 04 35 AM

These stack traces making debugging very annoying since I have to scroll through hundreds of lines of stack traces every time there is an error.

I can't see how showing a url like (webpack-internal:///./node_modules/.pnpm/styled-components@5.2.1_5544908854c626bd13d8795d8f0cae8d/node_modules/styled-components/dist/styled-components.browser.esm.js:780:6) is more useful than just showing an abbreviated url or partial path like node_modules/styled-components/dist/styled-components.browser.esm.js:780:6

I clearly remember the stack traces being much more readable in older versions of CRA. I'm currently using using react-scripts 4.0.1.

My question is: where in the react-scripts webpack config are the paths for the stack traces being set, and how can I make them less verbose? (I'm using CRA-rewired to modify my config) If this is considered an issue by others as well, I would be willing to write a fix. Thanks!

Assignee
Assign to
Time tracking