The deploys log indicates a index.js is missing, but the file exists in my code.
How do I fix this issue?
Netlify Name: Ken Ingram
Site Name: fss-schedule.netlify.app
Build settings
5:04:02 PM: Build ready to start
5:04:04 PM: build-image version: be42e453d6c8f171cc2f654acc29c0a8b60e6d93
5:04:04 PM: build-image tag: v3.7.1
5:04:04 PM: buildbot version: aeff9bac829063f245ef3a27dbbb067c3534cc26
5:04:04 PM: Building without cache
5:04:04 PM: Starting to prepare the repo for build
5:04:05 PM: No cached dependencies found. Cloning fresh repo
5:04:05 PM: git clone GitHub - kingram6865/fss: Scheduling App for FSS
5:04:05 PM: Preparing Git Reference refs/heads/main
5:04:06 PM: Parsing package.json dependencies
5:04:07 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: βclient/buildβ versus βbuildβ in the Netlify UI
5:04:07 PM: Starting build script
5:04:07 PM: Installing dependencies
5:04:07 PM: Python version set to 2.7
5:04:09 PM: v12.18.0 is already installed.
5:04:10 PM: Now using node v12.18.0 (npm v6.14.4)
5:04:10 PM: Started restoring cached build plugins
5:04:10 PM: Finished restoring cached build plugins
5:04:10 PM: Attempting ruby version 2.7.1, read from environment
5:04:11 PM: Using ruby version 2.7.1
5:04:12 PM: Using PHP version 5.6
5:04:12 PM: Started restoring cached node modules
5:04:12 PM: Finished restoring cached node modules
5:04:12 PM: Installing NPM modules using NPM version 6.14.4
5:04:52 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. Iβll try to do my best with it!
5:04:52 PM: > core-js@2.6.12 postinstall /opt/build/repo/client/node_modules/babel-runtime/node_modules/core-js
5:04:52 PM: > node -e βtry{require(β./postinstallβ)}catch(e){}β
5:04:52 PM: > core-js@3.9.1 postinstall /opt/build/repo/client/node_modules/core-js
5:04:52 PM: > node -e βtry{require(β./postinstallβ)}catch(e){}β
5:04:52 PM: > core-js-pure@3.9.1 postinstall /opt/build/repo/client/node_modules/core-js-pure
5:04:52 PM: > node -e βtry{require(β./postinstallβ)}catch(e){}β
5:04:52 PM: > ejs@2.7.4 postinstall /opt/build/repo/client/node_modules/ejs
5:04:52 PM: > node ./postinstall.js
5:04:55 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
5:04:55 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
5:04:55 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
5:04:55 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
5:04:55 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
5:04:55 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
5:04:55 PM: added 1979 packages from 765 contributors and audited 1985 packages in 42.367s
5:04:57 PM: 135 packages are looking for funding
5:04:57 PM: run npm fund
for details
5:04:57 PM: found 0 vulnerabilities
5:04:57 PM: NPM modules installed
5:04:58 PM: Started restoring cached go cache
5:04:58 PM: Finished restoring cached go cache
5:04:58 PM: go version go1.14.4 linux/amd64
5:04:58 PM: go version go1.14.4 linux/amd64
5:04:58 PM: Installing missing commands
5:04:58 PM: Verify run directory
5:04:59 PM: β
5:04:59 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:04:59 PM: Netlify Build
5:04:59 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:04:59 PM: β
5:04:59 PM: β― Version
5:04:59 PM: @netlify/build 9.19.0
5:05:00 PM: β
5:05:00 PM: β― Flags
5:05:00 PM: apiHost: api.netlify.com
5:05:00 PM: cacheDir: /opt/build/cache
5:05:00 PM: deployId: 60626af2c41c6800d9fbd39c
5:05:00 PM: mode: buildbot
5:05:00 PM: testOpts:
5:05:00 PM: silentLingeringProcesses: ββ
5:05:00 PM: β
5:05:00 PM: β― Current directory
5:05:00 PM: /opt/build/repo/client
5:05:00 PM: β
5:05:00 PM: β― Config file
5:05:00 PM: No config file was defined: using default values.
5:05:00 PM: β
5:05:00 PM: β― Context
5:05:00 PM: production
5:05:00 PM: β
5:05:00 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:05:00 PM: 1. Build command from Netlify app
5:05:00 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:05:00 PM: β
5:05:00 PM: $ CI= npm run build
5:05:00 PM: > client@0.1.0 build /opt/build/repo/client
5:05:00 PM: > react-scripts build
5:05:02 PM: Could not find a required file.
5:05:02 PM: Name: index.js
5:05:02 PM: Searched in: /opt/build/repo/client/src
5:05:02 PM: npm ERR! code ELIFECYCLE
5:05:02 PM: npm ERR! errno 1
5:05:02 PM: npm ERR! client@0.1.0 build: react-scripts build
5:05:02 PM: npm ERR! Exit status 1
5:05:02 PM: npm ERR!
5:05:02 PM: npm ERR! Failed at the client@0.1.0 build script.
5:05:02 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
5:05:02 PM: npm ERR! A complete log of this run can be found in:
5:05:02 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-03-30T00_05_02_277Z-debug.log
5:05:02 PM: β
5:05:02 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:05:02 PM: βbuild.commandβ failed
5:05:02 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:05:02 PM: β
5:05:02 PM: Error message
5:05:02 PM: Command failed with exit code 1: CI= npm run build
5:05:02 PM: β
5:05:02 PM: Error location
5:05:02 PM: In Build command from Netlify app:
5:05:02 PM: CI= npm run build
5:05:02 PM: β
5:05:02 PM: Resolved config
5:05:02 PM: build:
5:05:02 PM: base: /opt/build/repo/client
5:05:02 PM: command: CI= npm run build
5:05:02 PM: commandOrigin: ui
5:05:02 PM: publish: /opt/build/repo/client/build
5:05:02 PM: Caching artifacts
5:05:02 PM: Started saving node modules
5:05:02 PM: Finished saving node modules
5:05:02 PM: Started saving build plugins
5:05:02 PM: Finished saving build plugins
5:05:02 PM: Started saving pip cache
5:05:02 PM: Finished saving pip cache
5:05:02 PM: Started saving emacs cask dependencies
5:05:02 PM: Finished saving emacs cask dependencies
5:05:02 PM: Started saving maven dependencies
5:05:02 PM: Finished saving maven dependencies
5:05:02 PM: Started saving boot dependencies
5:05:02 PM: Finished saving boot dependencies
5:05:02 PM: Started saving rust rustup cache
5:05:02 PM: Finished saving rust rustup cache
5:05:02 PM: Started saving go dependencies
5:05:02 PM: Finished saving go dependencies
5:05:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:05:05 PM: Failing build: Failed to build site
5:05:05 PM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2
5:05:05 PM: Finished processing build request in 1m1.18237493s