I keep getting this error when I try to do a continuous deployment from git. Can’t figure out what is going wrong. Seeking some help
6:23:29 PM: Build ready to start
6:23:31 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
6:23:31 PM: build-image tag: v3.4.1
6:23:31 PM: buildbot version: bca3bbf1ce7c7ca2e2192b1683becc1d98c88c5b
6:23:32 PM: Fetching cached dependencies
6:23:32 PM: Failed to fetch cache, continuing with build
6:23:32 PM: Starting to prepare the repo for build
6:23:32 PM: No cached dependencies found. Cloning fresh repo
6:23:32 PM: git clone https://github.com/tarunkishore2303/CovidApp
6:23:33 PM: Preparing Git Reference refs/heads/master
6:23:34 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'build' versus 'build/' in the Netlify UI
6:23:34 PM: Starting build script
6:23:34 PM: Installing dependencies
6:23:34 PM: Python version set to 2.7
6:23:36 PM: v12.18.0 is already installed.
6:23:37 PM: Now using node v12.18.0 (npm v6.14.4)
6:23:37 PM: Started restoring cached build plugins
6:23:37 PM: Finished restoring cached build plugins
6:23:37 PM: Attempting ruby version 2.7.1, read from environment
6:23:38 PM: Using ruby version 2.7.1
6:23:39 PM: Using PHP version 5.6
6:23:39 PM: 5.2 is already installed.
6:23:39 PM: Using Swift version 5.2
6:23:39 PM: Started restoring cached node modules
6:23:39 PM: Finished restoring cached node modules
6:23:39 PM: Installing NPM modules using NPM version 6.14.4
6:24:18 PM: > core-js@2.6.11 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
6:24:18 PM: > node -e "try{require('./postinstall')}catch(e){}"
6:24:18 PM: > core-js@3.6.5 postinstall /opt/build/repo/node_modules/core-js
6:24:18 PM: > node -e "try{require('./postinstall')}catch(e){}"
6:24:18 PM: > core-js-pure@3.6.5 postinstall /opt/build/repo/node_modules/core-js-pure
6:24:18 PM: > node -e "try{require('./postinstall')}catch(e){}"
6:24:19 PM: > protobufjs@6.10.1 postinstall /opt/build/repo/node_modules/protobufjs
6:24:19 PM: > node scripts/postinstall
6:24:22 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
6:24:22 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:24:22 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
6:24:22 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:24:22 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
6:24:22 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:24:22 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
6:24:22 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:24:22 PM: added 1752 packages from 827 contributors and audited 1756 packages in 41.59s
6:24:23 PM: 67 packages are looking for funding
6:24:23 PM: run `npm fund` for details
6:24:23 PM: found 1 low severity vulnerability
6:24:23 PM: run `npm audit fix` to fix them, or `npm audit` for details
6:24:23 PM: NPM modules installed
6:24:24 PM: Started restoring cached go cache
6:24:24 PM: Finished restoring cached go cache
6:24:24 PM: go version go1.14.4 linux/amd64
6:24:24 PM: go version go1.14.4 linux/amd64
6:24:24 PM: Installing missing commands
6:24:24 PM: Verify run directory
6:24:25 PM:
6:24:25 PM: ┌─────────────────────────────┐
6:24:25 PM: │ Netlify Build │
6:24:25 PM: └─────────────────────────────┘
6:24:25 PM:
6:24:25 PM: ❯ Version
6:24:25 PM: @netlify/build 3.1.10
6:24:25 PM:
6:24:25 PM: ❯ Flags
6:24:25 PM: deployId: 5f2d4ec9f8d7a00008bbdd40
6:24:25 PM: mode: buildbot
6:24:25 PM: timersFile: /tmp/substage_times.txt
6:24:25 PM:
6:24:25 PM: ❯ Current directory
6:24:25 PM: /opt/build/repo
6:24:25 PM:
6:24:25 PM: ❯ Config file
6:24:25 PM: No config file was defined: using default values.
6:24:25 PM:
6:24:25 PM: ❯ Context
6:24:25 PM: production
6:24:25 PM:
6:24:25 PM: ┌───────────────────────────────────┐
6:24:25 PM: │ 1. Build command from Netlify app │
6:24:25 PM: └───────────────────────────────────┘
6:24:25 PM:
6:24:25 PM: $ npm run build
6:24:25 PM: > covidtracker@0.1.0 build /opt/build/repo
6:24:25 PM: > react-scripts build
6:24:27 PM: Creating an optimized production build...
6:24:36 PM: Failed to compile.
6:24:36 PM:
6:24:36 PM: ./src/App.js
6:24:36 PM: Line 46:2: Parsing error: Unexpected token
6:24:36 PM: 44 |
6:24:36 PM: 45 | useEffect(() => {
6:24:36 PM: > 46 | <<<<<<< HEAD
6:24:36 PM: | ^
6:24:36 PM: 47 | const fetchData = () => {
6:24:36 PM: 48 | fetch("https://disease.sh/v3/covid-19/countries")
6:24:36 PM: 49 | =======
6:24:36 PM: npm ERR! code ELIFECYCLE
6:24:36 PM: npm ERR! errno 1
6:24:36 PM: npm ERR! covidtracker@0.1.0 build: `react-scripts build`
6:24:36 PM: npm ERR! Exit status 1
6:24:36 PM: npm ERR!
6:24:36 PM: npm ERR! Failed at the covidtracker@0.1.0 build script.
6:24:36 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
6:24:36 PM: npm ERR! A complete log of this run can be found in:
6:24:36 PM: npm ERR! /opt/buildhome/.npm/_logs/2020-08-07T12_54_36_963Z-debug.log
6:24:36 PM:
6:24:36 PM: If the build failed with a warning about "process.env.CI = true", this is due to "create-react-app" treating warnings as errors when in CI. In order to fix this problem, please either:
6:24:36 PM: - Fix the issues highlighted by the warnings above.
6:24:36 PM: - Or modify the "scripts.build" command in your "package.json" from "react-scripts build" to "CI= react-scripts build"
6:24:36 PM: More information can be found at https://docs.netlify.com/configure-builds/troubleshooting-tips/#build-fails-on-warning-message
6:24:36 PM:
6:24:36 PM: ┌─────────────────────────────┐
6:24:36 PM: │ "build.command" failed │
6:24:36 PM: └─────────────────────────────┘
6:24:36 PM:
6:24:36 PM: Error message
6:24:36 PM: Command failed with exit code 1: npm run build
6:24:36 PM:
6:24:36 PM: Error location
6:24:36 PM: In Build command from Netlify app:
6:24:36 PM: npm run build
6:24:36 PM:
6:24:36 PM: Resolved config
6:24:36 PM: build:
6:24:36 PM: command: npm run build
6:24:36 PM: commandOrigin: ui
6:24:36 PM: publish: /opt/build/repo/build
6:24:37 PM: Caching artifacts
6:24:37 PM: Started saving node modules
6:24:37 PM: Finished saving node modules
6:24:37 PM: Started saving build plugins
6:24:37 PM: Finished saving build plugins
6:24:37 PM: Started saving pip cache
6:24:37 PM: Finished saving pip cache
6:24:37 PM: Started saving emacs cask dependencies
6:24:37 PM: Finished saving emacs cask dependencies
6:24:37 PM: Started saving maven dependencies
6:24:37 PM: Finished saving maven dependencies
6:24:37 PM: Started saving boot dependencies
6:24:37 PM: Finished saving boot dependencies
6:24:37 PM: Started saving go dependencies
6:24:37 PM: Finished saving go dependencies
6:24:40 PM: Error running command: Build script returned non-zero exit code: 1
6:24:40 PM: Failing build: Failed to build site
6:24:40 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
6:24:40 PM: Finished processing build request in 1m8.844668195s