首页 > 解决方案 > 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。谁能建议如何解决这个问题?

浏览器中的错误

插件/index.ts 中的错误

标签: typescriptnode-modulescypresstypescript-typings

解决方案


推荐阅读