Search code examples
javascriptcucumbercypressbdd

Error: Can't walk dependency graph: Cannot find module '@badeball/cypress-cucumber-preprocessor/steps'


I am getting this error while running my feature file don't know what's wrong sharing the screenshots below

enter image description here

enter image description here

enter image description here


Solution

  • Probably, you had an old version of the package @badeball/cypress-cucumber-preprocessor.

    Because right now, the import is:

    import {
      DataTable,
      Given,
      Then,
      When,
    } from "@badeball/cypress-cucumber-preprocessor";