New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package subpath './package.json' is not defined by "exports" in /.../node_modules/yargs/package.json #1817
Comments
@toverux could you provide an example of where this is failing? |
I also have this issue when I run |
In my case, this happens with NativeScript. Maybe it's scanning node_modules for plugins? (not familiar enough with it yet).
https://nodejs.org/api/esm.html See also : react-native-community/cli#1168 (comment) |
@toverux if you've confirmed adding the additional export works, mind submitting a patch? |
Will do! |
give |
For an unknown reason, my build fails at some point with the following error:
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 :Since yargs decided to add explicit exports, it would be a nice to let external tools read yargs' package description.
The text was updated successfully, but these errors were encountered: