单击框架预置并部署到vercel后,我得到以下错误:
在您的项目中无法检测到Next.js版本。确保"next"安装在“依赖项”或"devDependencies“中
即使我有下一个依赖项,如下所示:
{
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"graphql": "^16.6.0",
"graphql-request": "^5.0.0",
"html-react-parser": "^3.0.4",
"moment": "^2.29.4",
"next": "^12.3.1",
"nextjs": "^0.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-multi-carousel": "^2.8.2",
"sass": "^1.54.9"
},
"devDependencies": {
"@types/node": "17.0.35",
"@types/react": "18.0.9",
"@types/react-dom": "18.0.5",
"autoprefixer": "^10.4.7",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.2",
"typescript": "4.7.2"
}
}如何修复此错误并获得成功的部署,因为当我将预设更改为“其他”时,它会部署,但会给出404错误。
发布于 2022-10-17 14:28:33
https://stackoverflow.com/questions/74065394
复制相似问题