Skip to content

browser-sync tried to access chalk, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound #2021

@kristian

Description

@kristian

Issue details

Executing browser-sync with Yarn 2 PnP gives the following error:

browser-sync tried to access chalk, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Steps to reproduce/test case

Use browser-sync with Yarn 2

Checked in package.json file and indeed chalk is only defined as a devDependency however, because it is used in the public API, which is exposed to dependent packages it should be a dependency instead.

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