我正在使用Nextjs和Vercel来部署我的网站。Cypress昨天工作得很好。但是今天,当Vercel运行构建时,我得到了以下错误:

我注意到vercel安装的是Cypress版本6.9.0,而我的package.json文件中有6.8.0。

所以我将版本更新到6.9.0,但是我仍然得到相同的错误。为什么会突然发生这样的事情?
我的package.json文件
{
"name": "website",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "cross-env API_URL=http://localhost:1337 next dev",
"public-dev": "next dev",
"build": "next build",
"start": "next start",
"cypress:open": "cypress open"
},
"dependencies": {
"@apollo/client": "^3.1.3",
"@blueprintjs/core": "^3.35.0",
"@blueprintjs/datetime": "^3.19.3",
"@popperjs/core": "^2.5.4",
"axios": "^0.21.1",
"graphql": "^15.3.0",
"graphql-tag": "^2.10.4",
"isomorphic-unfetch": "^3.1.0",
"moment": "^2.29.1",
"next": "10.0.2",
"next-with-apollo": "^5.1.0",
"nouislider-react": "^3.3.8",
"react": "^17.0.1",
"react-copy-to-clipboard": "^5.0.2",
"react-dom": "^17.0.1",
"react-flatpickr": "^3.10.6",
"react-froala-wysiwyg": "^3.2.1",
"react-ga": "^3.2.1",
"react-gtm-module": "^2.0.11",
"react-localization": "^1.0.15",
"react-lottie": "^1.2.3",
"react-popper": "^2.2.3",
"react-scroll": "^1.8.1",
"react-slick": "^0.27.13",
"sass": "^1.30.0",
"swiper": "^6.3.5",
"swr": "^0.4.2"
},
"devDependencies": {
"@types/node": "^14.0.27",
"@types/react": "^16.9.46",
"cross-env": "^7.0.2",
"cypress": "^6.9.0",
"cypress-localstorage-commands": "^1.4.2",
"eslint": "^7.4.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-standard": "^4.0.1",
"typescript": "^3.9.7"
}
}发布于 2021-04-06 09:58:59
Cypress团队错误地发布了6.9.0,实际上版本是7.0.0,他们将删除6.9.0:
https://stackoverflow.com/questions/66961328
复制相似问题