Heroku app deployment fails (Build failed)

As mentioned in the title here is a link to the (https://raw.githubusercontent.com/hanin77/heroku_build_log/master/build_log) build-log file

This is the package file:

 {
      "name": "boiler-app",
      "version": "1.0.0",
      "main": "index.js",
      "author": "Med Han",
      "license": "MIT",
      "engines": {
        "node": "12.18.3",
        "yarn": "1.22.4"
      },
      "scripts": {
        "serve": "live-server public/",
        "build:dev": "webpack",
        "build:prod": "webpack -p --env production",
        "dev-server": "webpack-dev-server",
        "start": "node server/server.js",
        "heroku-postbuild": "yarn run build:prod"
      },
      "dependencies": {
        "@babel/cli": "7.10.3",
        "@babel/core": "7.10.3",
        "@babel/preset-env": "^7.10.3",
        "@babel/preset-react": "^7.10.1",
        "axios": "0.19.2",
        "babel-loader": "8.1.0",
        "babel-plugin-transform-class-properties": "6.24.1",
        "babel-plugin-transform-object-rest-spread": "^6.26.0",
        "css-loader": "3.6.0",
        "express": "4.17.1",
        "mini-css-extract-plugin": "0.10.0",
        "moment": "2.27.0",
        "node-sass": "4.14.1",
        "normalize.css": "8.0.1",
        "numeral": "2.0.6",
        "raf": "3.4.1",
        "react": "16.13.1",
        "react-addons-shallow-compare": "15.6.2",
        "react-bootstrap": "^1.0.1",
        "react-dom": "16.13.1",
        "react-modal": "3.11.2",
        "react-redux": "7.2.0",
        "react-router-bootstrap": "^0.25.0",
        "react-router-dom": "5.2.0",
        "react-test-renderer": "16.13.1",
        "redux": "4.0.5",
        "redux-mock-store": "1.5.4",
        "redux-thunk": "2.3.0",
        "sass-loader": "8.0.2",
        "style-loader": "1.2.1",
        "uuid": "8.1.0",
        "webpack": "4.43.0"
      },
      "devDependencies": {
        "config": "^3.3.1",
        "cross-env": "7.0.2",
        "debug": "^4.1.1",
        "dotenv": "8.2.0",
        "enzyme": "3.11.0",
        "enzyme-adapter-react-16": "1.15.2",
        "enzyme-to-json": "3.5.0",
        "jest": "26.0.1",
        "jest-environment-uint8array": "^1.0.0",
        "live-server": "^1.2.0",
        "morgan": "^1.10.0",
        "webpack-cli": "^3.3.11",
        "webpack-dev-server": "3.11.0"
      }
    }

Hey there,

did you manage to solve it?

When I google for the error in your build log:
Trace: The node type SpreadProperty has been renamed to SpreadElement

I find some solutions.
Did you try some of them?

replacing “babel-plugin-transform-object-rest-spread” in package file with
@babel/plugin-proposal-object-rest-spread” fixed the problem ,
thanks a lot :grinning: :+1: :+1:

1 Like

Great work,
glad you made it!