Error: 无法遍历依赖图:找不到模块’@badeball/cypress-cucumber-preprocessor/steps’。

huangapple go评论54阅读模式
英文:

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

问题

我在运行我的特性文件时遇到了这个错误,不知道出了什么问题。以下是截图:

Error: 无法遍历依赖图:找不到模块’@badeball/cypress-cucumber-preprocessor/steps’。

Error: 无法遍历依赖图:找不到模块’@badeball/cypress-cucumber-preprocessor/steps’。

Error: 无法遍历依赖图:找不到模块’@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

Error: 无法遍历依赖图:找不到模块’@badeball/cypress-cucumber-preprocessor/steps’。

Error: 无法遍历依赖图:找不到模块’@badeball/cypress-cucumber-preprocessor/steps’。

Error: 无法遍历依赖图:找不到模块’@badeball/cypress-cucumber-preprocessor/steps’。

答案1

得分: 0

你可能使用的是 @badeball/cypress-cucumber-preprocessor 包的旧版本。

因为现在的导入方式是:

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

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";

huangapple
  • 本文由 发表于 2023年4月19日 18:46:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76053610.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定