Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Package subpath './package.json' is not defined by "exports" in /.../node_modules/yargs/package.json #1817

@toverux

Description

@toverux

For an unknown reason, my build fails at some point with the following error:

Package subpath './package.json' is not defined by "exports" in /.../node_modules/yargs/package.json

There is no more context on why the package.json from yargs is required.

However, adding this key in the exports of yargs' package.json works :

"exports": {
  "./package.json": "./package.json"
}

Since yargs decided to add explicit exports, it would be a nice to let external tools read yargs' package description.

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