Skip to content

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

@THLJamie

Description

@THLJamie

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions