Skip to content
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

add package.json to module exports #152

Merged
merged 1 commit into from Apr 12, 2021

Conversation

sebastiendavid
Copy link
Contributor

@sebastiendavid sebastiendavid commented Apr 12, 2021

PR description

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: yargs/yargs#1818

Checklist

  • - Added tests
  • - Ran npm test, ensuring linting passes
  • - Adjust README documentation if relevant

@brettz9 brettz9 merged commit 90879c5 into JSONPath-Plus:master Apr 12, 2021
@brettz9
Copy link
Collaborator

brettz9 commented Apr 12, 2021

Thanks! Released in https://github.com/JSONPath-Plus/JSONPath/releases/tag/v5.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants