You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had followed the instruction and installed the jsonpath, below is the jsonpath folder under node_modules:
Then I import the jsonpath and used the query function as below:
Then when run the test, I got below error:
Error: Can't walk dependency graph: Cannot find module '..' from '/Users/jamiezhai/Automation/cypress-e2e-test/node_modules/jsonpath/jsonpath.js'
required by /Users/jamiezhai/Automation/cypress-e2e-test/node_modules/jsonpath/jsonpath.js
Pls can anyone help/suggest?
Thanks heaps!
The text was updated successfully, but these errors were encountered:
I remember seeing something similar and discovered that this issue happens when the browser entry point (in package.json) is being used. Using the main entry point fixes it for me.
I had followed the instruction and installed the jsonpath, below is the jsonpath folder under node_modules:
![Screen Shot 2022-09-21 at 11 35 45 AM](https://user-images.githubusercontent.com/106132348/191383209-3b7d2488-ff13-471e-be8f-6a6af67adab1.png)
Then I import the jsonpath and used the query function as below:
![Screen Shot 2022-09-21 at 11 38 04 AM](https://user-images.githubusercontent.com/106132348/191383293-32932243-891e-4cef-9684-e0dd9a65c099.png)
Then when run the test, I got below error:
![Screen Shot 2022-09-21 at 11 39 03 AM](https://user-images.githubusercontent.com/106132348/191383376-55729907-0fe3-480c-9166-be6b1ff89c9d.png)
Error: Can't walk dependency graph: Cannot find module '..' from '/Users/jamiezhai/Automation/cypress-e2e-test/node_modules/jsonpath/jsonpath.js'
required by /Users/jamiezhai/Automation/cypress-e2e-test/node_modules/jsonpath/jsonpath.js
Pls can anyone help/suggest?
Thanks heaps!
The text was updated successfully, but these errors were encountered: