In local machine it is working fine but when i deploy on netlify, it is not. What is the issue? Can someone guide? I have added _redirects file in public folder. Also npm run build is set in environment variable and am using NODE_VERSION 14.
*Netlify site name: sparkly-monstera-6f288c.netlify.app
12:24:25 PM: Build ready to start
12:24:56 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
12:24:56 PM: build-image tag: v4.10.1
12:24:56 PM: buildbot version: 37262c48b1f3cfa88c6caed707d29b19aef6a5a7
12:24:56 PM: Fetching cached dependencies
12:24:56 PM: Failed to fetch cache, continuing with build
12:24:56 PM: Starting to prepare the repo for build
12:24:56 PM: No cached dependencies found. Cloning fresh repo
12:24:56 PM: git clone https://github.com/Bibiwei-Pere/Personal
12:24:57 PM: Preparing Git Reference refs/heads/main
12:24:57 PM: Parsing package.json dependencies
12:24:58 PM: Starting build script
12:24:58 PM: Installing dependencies
12:24:58 PM: Python version set to 2.7
12:24:58 PM: Downloading and installing node v14.20.0...
12:24:58 PM: Downloading https://nodejs.org/dist/v14.20.0/node-v14.20.0-linux-x64.tar.xz...
12:24:59 PM: Computing checksum with sha256sum
12:24:59 PM: Checksums matched!
12:25:03 PM: Now using node v14.20.0 (npm v6.14.17)
12:25:03 PM: Started restoring cached build plugins
12:25:03 PM: Finished restoring cached build plugins
12:25:03 PM: Attempting ruby version 2.7.2, read from environment
12:25:04 PM: Using ruby version 2.7.2
12:25:04 PM: Using PHP version 8.0
12:25:04 PM: Started restoring cached yarn cache
12:25:04 PM: Finished restoring cached yarn cache
12:25:04 PM: No yarn workspaces detected
12:25:04 PM: Started restoring cached node modules
12:25:04 PM: Finished restoring cached node modules
12:25:04 PM: Installing NPM modules using Yarn version 1.22.10
12:25:05 PM: yarn install v1.22.10
12:25:05 PM: warning package.json: "dependencies" has dependency "react-scripts" with range "5.0.1" that collides with a dependency in "devDependencies" of the same name with version "latest"
12:25:05 PM: warning yqnikozom.github@0.0.0: "dependencies" has dependency "react-scripts" with range "5.0.1" that collides with a dependency in "devDependencies" of the same name with version "latest"
12:25:05 PM: [1/4] Resolving packages...
12:25:08 PM: warning build > wrench@1.3.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
12:25:12 PM: warning netlify-cli > @netlify/build > statsd-client@0.4.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
12:25:15 PM: warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
12:25:15 PM: warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
12:25:15 PM: warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
12:25:15 PM: warning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
12:25:18 PM: [2/4] Fetching packages...
12:25:56 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
12:25:56 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-linux-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-linux-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-freebsd-x64@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-freebsd-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-darwin-x64@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-darwin-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-linux-ppc64@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-linux-ppc64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-darwin-arm64@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-darwin-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-darwin-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/local-functions-proxy-freebsd-arm64@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-freebsd-arm64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-freebsd-arm64@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/local-functions-proxy-openbsd-x64@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-openbsd-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-linux-arm@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-linux-arm@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-linux-ia32@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-linux-ia32@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-win32-ia32@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-win32-ia32@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/local-functions-proxy-win32-ia32@1.1.1: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/local-functions-proxy-win32-x64@1.1.1: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/local-functions-proxy-win32-x64@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-darwin-arm64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-darwin-arm64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-darwin-arm64@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/esbuild-android-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-android-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-freebsd-arm64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-freebsd-arm64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-freebsd-arm64@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/esbuild-linux-arm@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-arm@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-linux-arm64@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-arm64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-darwin-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-darwin-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-android-arm64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-android-arm64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-android-arm64@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/esbuild-linux-s390x@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-s390x@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-freebsd-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-freebsd-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-linux-32@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-32@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-windows-32@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-windows-32@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-windows-32@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/esbuild-openbsd-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-openbsd-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-netbsd-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-netbsd-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-windows-arm64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-windows-arm64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-windows-arm64@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info @netlify/esbuild-windows-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-windows-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-linux-ppc64le@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-ppc64le@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-linux-mips64le@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-mips64le@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-linux-riscv64@0.14.25: The CPU architecture "x64" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-linux-riscv64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: info @netlify/esbuild-sunos-64@0.14.25: The platform "linux" is incompatible with this module.
12:25:56 PM: info "@netlify/esbuild-sunos-64@0.14.25" is an optional dependency and failed compatibility check. Excluding it from installation.
12:25:56 PM: [3/4] Linking dependencies...
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript@22.0.0" has unmet peer dependency "@typescript-eslint/eslint-plugin@^5.0.0".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript@22.0.0" has unmet peer dependency "eslint@^8.0.1".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript@22.0.0" has unmet peer dependency "eslint-plugin-import@^2.25.2".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript@22.0.0" has unmet peer dependency "eslint-plugin-n@^15.0.0".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript@22.0.0" has unmet peer dependency "eslint-plugin-promise@^6.0.0".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript > eslint-config-standard@17.0.0" has unmet peer dependency "eslint@^8.0.1".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript > eslint-config-standard@17.0.0" has unmet peer dependency "eslint-plugin-import@^2.25.2".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript > eslint-config-standard@17.0.0" has unmet peer dependency "eslint-plugin-n@^15.0.0".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript > eslint-config-standard@17.0.0" has unmet peer dependency "eslint-plugin-promise@^6.0.0".
12:25:56 PM: warning "@emailjs/browser > eslint-config-standard-with-typescript > @typescript-eslint/parser@5.36.2" has unmet peer dependency "eslint@^6.0.0 || ^7.0.0 || ^8.0.0".
12:25:56 PM: warning " > react-lottie@1.2.3" has incorrect peer dependency "react@^0.14.7 || ^15.0.0 || ^16.0.0".
12:25:56 PM: warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
12:25:56 PM: warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
12:26:33 PM: [4/4] Building fresh packages...
12:26:37 PM: success Saved lockfile.
12:26:37 PM: Done in 91.98s.
12:26:37 PM: NPM modules installed using Yarn
12:26:37 PM: warning package.json: "dependencies" has dependency "react-scripts" with range "5.0.1" that collides with a dependency in "devDependencies" of the same name with version "latest"
12:26:37 PM: Started restoring cached go cache
12:26:37 PM: Finished restoring cached go cache
12:26:37 PM: Installing Go version 1.17 (requested 1.17)
12:26:41 PM: unset GOOS;
12:26:41 PM: unset GOARCH;
12:26:41 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
12:26:41 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
12:26:41 PM: go version >&2;
12:26:41 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
12:26:41 PM: go version go1.17 linux/amd64
12:26:41 PM: Installing missing commands
12:26:41 PM: Verify run directory
12:26:42 PM:
12:26:42 PM: ────────────────────────────────────────────────────────────────
12:26:42 PM: Netlify Build
12:26:42 PM: ────────────────────────────────────────────────────────────────
12:26:42 PM:
12:26:42 PM: ❯ Version
12:26:42 PM: @netlify/build 27.17.1
12:26:42 PM:
12:26:42 PM: ❯ Flags
12:26:42 PM: baseRelDir: true
12:26:42 PM: buildId: 631b2269d66a3a2eca8dca96
12:26:42 PM: deployId: 631b2269d66a3a2eca8dca98
12:26:42 PM:
12:26:42 PM: ❯ Current directory
12:26:42 PM: /opt/build/repo
12:26:42 PM:
12:26:42 PM: ❯ Config file
12:26:42 PM: No config file was defined: using default values.
12:26:42 PM:
12:26:42 PM: ❯ Context
12:26:42 PM: production
12:26:42 PM:
12:26:42 PM: ────────────────────────────────────────────────────────────────
12:26:42 PM: 1. Build command from Netlify app
12:26:42 PM: ────────────────────────────────────────────────────────────────
12:26:42 PM:
12:26:42 PM: $ yarn build
12:26:42 PM: yarn run v1.22.10
12:26:42 PM: warning package.json: "dependencies" has dependency "react-scripts" with range "5.0.1" that collides with a dependency in "devDependencies" of the same name with version "latest"
12:26:42 PM: $ react-scripts build
12:26:43 PM: Creating an optimized production build...
12:26:44 PM: 🌼 daisyUI components 2.24.0 https://github.com/saadeghi/daisyui
12:26:45 PM: ✔︎ Including: base, components, themes[29], utilities
12:27:07 PM: Failed to compile.
12:27:07 PM:
12:27:07 PM: SyntaxError: /opt/build/repo/src/Pages/Shared/Footer/Footer.js: Unterminated JSX contents. (46:13)
12:27:07 PM: 44 | Bibiwei Pere
12:27:07 PM: 45 | </span>
12:27:07 PM: > 46 | </footer>
12:27:07 PM: | ^
12:27:07 PM: 47 | );
12:27:07 PM: 48 | };
12:27:07 PM: 49 |
12:27:07 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
12:27:07 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
12:27:07 PM:
12:27:07 PM: ────────────────────────────────────────────────────────────────
12:27:07 PM: "build.command" failed
12:27:07 PM: ────────────────────────────────────────────────────────────────
12:27:07 PM:
12:27:07 PM: Error message
12:27:07 PM: Command failed with exit code 1: yarn build (https://ntl.fyi/exit-code-1)
12:27:07 PM:
12:27:07 PM: Error location
12:27:07 PM: In Build command from Netlify app:
12:27:07 PM: yarn build
12:27:07 PM:
12:27:07 PM: Resolved config
12:27:07 PM: build:
12:27:07 PM: command: yarn build
12:27:07 PM: commandOrigin: ui
12:27:07 PM: environment:
12:27:07 PM: - NODE_VERSION
12:27:07 PM: publish: /opt/build/repo/build
12:27:07 PM: publishOrigin: ui
12:27:08 PM: Caching artifacts
12:27:08 PM: Started saving node modules
12:27:08 PM: Finished saving node modules
12:27:08 PM: Started saving build plugins
12:27:08 PM: Finished saving build plugins
12:27:08 PM: Started saving yarn cache
12:27:26 PM: Finished saving yarn cache
12:27:26 PM: Started saving pip cache
12:27:26 PM: Finished saving pip cache
12:27:26 PM: Started saving emacs cask dependencies
12:27:26 PM: Finished saving emacs cask dependencies
12:27:26 PM: Started saving maven dependencies
12:27:26 PM: Finished saving maven dependencies
12:27:26 PM: Started saving boot dependencies
12:27:26 PM: Finished saving boot dependencies
12:27:26 PM: Started saving rust rustup cache
12:27:26 PM: Finished saving rust rustup cache
12:27:26 PM: Started saving go dependencies
12:27:26 PM: Finished saving go dependencies
12:27:30 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:27:30 PM: Creating deploy upload records
12:27:30 PM: Failing build: Failed to build site
12:27:30 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:27:30 PM: Finished processing build request in 2m34.07081367s