Hello, I have this error with node@14.16.1, webpack@5.30.0 and jsonpath-plus@5.0.6:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports"
The pakage.json file is missing from exports and webpack is trying to require the file. I found the explanation on the yargs repository which had the same issue: https://github.com/yargs/yargs/pull/1818
PR description
Hello, I have this error with
node@14.16.1
,webpack@5.30.0
andjsonpath-plus@5.0.6
:The
pakage.json
file is missing fromexports
andwebpack
is trying to require the file. I found the explanation on theyargs
repository which had the same issue: https://github.com/yargs/yargs/pull/1818Checklist
npm test
, ensuring linting passes