Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Chalk version is not updated, leads to console error when used with create-react-app #2655

@kerendot

Description

@kerendot

The dependency chalk is outdated (using ^1.1.1 while the available version is 2.4.2.)

I am using node-sass in a create-react-app, which is using react-scripts v.3.0.0, which is also using chalk but in the advanced version (2.4.2). This versions conflict led to the following console error when running webpack-dev-server (using react-scripts):
TypeError: Cannot read property 'close' of undefined​​
(see pic attached)

The conflict was not solved by a clean npm install.
The workaround was to add ansi-styles as a dependency in my app's package.json.

I suggest to update chalk to the latest version so there will be no conflict.

  • NPM version : 6.4.1
  • Node version : 12.0.0
  • Node Platform : win32
  • Node architecture : x64
  • node-sass version : 4.12.0
  • npm node-sass versions : [email protected]

bug11

bug2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions