JSONPath-Plus / JSONPath

A fork of JSONPath from http://goessner.net/articles/JsonPath/
Other
975 stars 175 forks source link

add package.json to module exports #152

Closed sebastiendavid closed 3 years ago

sebastiendavid commented 3 years ago

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: https://github.com/yargs/yargs/pull/1818

Checklist

brettz9 commented 3 years ago

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