Skip to content

Console clearing removes CRA’s own warnings #7233

@denis-sokolov

Description

@denis-sokolov

react-scripts start continuous scrollback clearing (#2495) clears the warnings CRA itself prints. Here is a visual demonstration slowed down:

blink

On a faster setup it is near impossible to read the warning before it disappears.

Platform: node 10.15.3, npm 6.9.0
Search terms: clear, console, warning, 2495.

Steps to Reproduce

  1. npx create-react-app my-app foo --typescript
  2. cd foo
  3. Delete allowSyntheticDefaultImports option in tsconfig.json
  4. npm start

Expected Behavior

Ideally react-scripts would not clear the scrollback (#2495) and let the user see the logs of what happened in the past. Given the resolution of that issue this is unlikely.

Alternatively, react-scripts should take a lot of care to not clear its own warnings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions