我想在使用MERN创建的Heroku上部署网站。我用包裹做的。当我在Heroku上部署时,它会显示以下错误,而我无法在heroku上部署它。我怎样才能解决这个问题?误差图像
Package.json
{
"name": "TestProject",
"version": "1.0.0",
"description": "",
"main": "index.jsx",
"scripts": {
"start": "parcel public/index.html"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@material-ui/core": "^4.11.3",
"axios": "^0.21.1",
"dropzone": "^5.9.2",
"parcel": "^2.0.0-beta.2",
"react": "^17.0.2",
"react-bootstrap": "^1.5.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@parcel/transformer-image": "^2.0.0-beta.2",
"react-dropzone": "^11.3.2"
}
}
发布于 2021-06-02 18:03:58
Heroku会在那里寻找一个用于生产的构建命令。
"scripts": {
"build": "npm run build",
"install": "npm install",
"start": "....",
},
https://stackoverflow.com/questions/67812221
复制