typescript - Cypress 7.2.0 升级,导入不是模块
问题描述
我刚刚将我的自动化项目的赛普拉斯从 6.2.1 升级到 7.2.0,现在当我尝试使用命令运行项目时npm run cypress:open
,我收到以下错误。当我检查插件文件夹中的index.ts文件时,我从cypress-audit的导入给出了错误File 'C:/REPO/AutomationProject/node_modules/cypress-audit/index.d.ts' is not a module。谁能建议如何解决这个问题?
解决方案
推荐阅读
- javascript - 如何使用 EJS 文件中的 JS 函数
- mysql - 如何将本地 MSSQL 查询的结果传递到链接 MySQL 数据库的查询字符串中
- javascript - 使用正则表达式模式验证 HTML 表单条目
- angular - ListDetailsPage 是 2 个模块的一部分,请将 ListDetailsPage 移动到导入 AppModule 和 ListDetailsPageModule 的更高模块
- r - 删除R中的所有非拉丁字符
- list - 为什么 shuffle 函数需要一个 Int 参数?
- angular - 使用 Angular2 连接到远程服务器
- ruby-on-rails - Rails:chromedriver-helper 什么时候执行失败?
- types - 字符串和原子之间的莫扎特-奥兹区别
- javascript - 如何在javascript中解码nginx产生的十六进制编码