Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: Can't walk dependency graph: Cannot find module '..' #177

Open
THLJamie opened this issue Sep 20, 2022 · 1 comment
Open

Error: Can't walk dependency graph: Cannot find module '..' #177

THLJamie opened this issue Sep 20, 2022 · 1 comment

Comments

@THLJamie
Copy link

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

Then I import the jsonpath and used the query function as below:
Screen Shot 2022-09-21 at 11 38 04 AM

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
Screen Shot 2022-09-21 at 11 39 03 AM
Pls can anyone help/suggest?
Thanks heaps!

@EarthyOrange
Copy link

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.

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

No branches or pull requests

2 participants