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

jsonPath conflit #18

Open
gauravagrwl opened this issue Jul 17, 2018 · 0 comments
Open

jsonPath conflit #18

gauravagrwl opened this issue Jul 17, 2018 · 0 comments

Comments

@gauravagrwl
Copy link

Hello Dvdln,
Below is my package declaration,

I am trying to use both jsonpath-object-transform and jsonpath.

{
  "name": "TestRules",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "dependencies": {
    "jsonpath-object-transform": "^1.0.4",
    "jsonpath": "^1.0.0",
    "validator": "^10.4.0"
  },
  "author": "",
  "license": ""
}

Internally jsonpath-object-transform use "JSONPath": "^0.10.0"

Because of conflict of version in JSONPath and jsonpath, it throws an error at runtime.

After looking into the code of jsonpath-object-transform, a quick fix will be to modify the package.json
to include "jsonpath" updated version instead of JSONPath.

"dependencies": {
    "jsonpath": "^1.0.0",
  },

Please advice.

Regards
Gaurav

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

No branches or pull requests

1 participant