Failed to build, giving errors

fanciful-cascaron-59acc6.netlify.app
11:15:36 AM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)
11:15:36 AM: build-image tag: v4.16.3
11:15:36 AM: buildbot version: 9a6b4d0d37eb2a90e2c482e1d6cfe9a0793e6262
11:15:36 AM: Fetching cached dependencies
11:15:36 AM: Failed to fetch cache, continuing with build
11:15:36 AM: Starting to prepare the repo for build
11:15:36 AM: No cached dependencies found. Cloning fresh repo
11:15:36 AM: git clone --filter=blob:none GitHub - pipicoker/music-app
11:15:37 AM: Preparing Git Reference refs/heads/master
11:15:37 AM: Parsing package.json dependencies
11:15:39 AM: Starting build script
11:15:39 AM: Installing dependencies
11:15:39 AM: Python version set to 2.7
11:15:39 AM: v16.19.0 is already installed.
11:15:39 AM: Now using node v16.19.0 (npm v8.19.3)
11:15:39 AM: Enabling Node.js Corepack
11:15:39 AM: Started restoring cached build plugins
11:15:39 AM: Finished restoring cached build plugins
11:15:39 AM: Attempting Ruby version 2.7.2, read from environment
11:15:40 AM: Using Ruby version 2.7.2
11:15:40 AM: Using PHP version 8.0
11:15:40 AM: Started restoring cached corepack dependencies
11:15:40 AM: mv: cannot move ‘/opt/build/cache/.node/corepack’ to ‘/opt/buildhome/.node/corepack’: No such file or directory
11:15:40 AM: Finished restoring cached corepack dependencies
11:15:40 AM: No npm workspaces detected
11:15:40 AM: Started restoring cached node modules
11:15:40 AM: Finished restoring cached node modules
11:15:40 AM: Bypassing sha validation. Running pre & post install scripts
11:15:41 AM: Installing npm packages using npm version 8.19.3
11:15:45 AM: npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: Array.prototype.sort() - JavaScript | MDN
11:15:48 AM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
11:15:53 AM: added 1454 packages, and audited 1455 packages in 12s
11:15:53 AM: 212 packages are looking for funding
11:15:53 AM: run npm fund for details
11:15:53 AM: 10 vulnerabilities (9 high, 1 critical)
11:15:53 AM: To address issues that do not require attention, run:
11:15:53 AM: npm audit fix
11:15:53 AM: To address all issues (including breaking changes), run:
11:15:53 AM: npm audit fix --force
11:15:53 AM: Run npm audit for details.
11:15:53 AM: npm packages installed
11:15:53 AM: Started restoring cached go cache
11:15:53 AM: Finished restoring cached go cache
11:15:53 AM: go version go1.19.4 linux/amd64
11:15:53 AM: Detected 1 framework(s)
11:15:54 AM: “create-react-app” at version “5.0.1”
11:15:54 AM: Installing missing commands
11:15:54 AM: Verify run directory
11:15:54 AM: Section completed: initializing
11:15:55 AM: ​
11:15:55 AM: Netlify Build
11:15:55 AM: ────────────────────────────────────────────────────────────────
11:15:55 AM: ​
11:15:55 AM: ❯ Version
11:15:55 AM: @netlify/build 29.4.1
11:15:55 AM: ​
11:15:55 AM: ❯ Flags
11:15:55 AM: baseRelDir: true
11:15:55 AM: buildId: 63bfddc6e6edfb12a3623d61
11:15:55 AM: deployId: 63bfddc6e6edfb12a3623d63
11:15:55 AM: ​
11:15:55 AM: ❯ Current directory
11:15:55 AM: /opt/build/repo
11:15:55 AM: ​
11:15:55 AM: ❯ Config file
11:15:55 AM: No config file was defined: using default values.
11:15:55 AM: ​
11:15:55 AM: ❯ Context
11:15:55 AM: production
11:15:55 AM: ​
11:15:55 AM: 1. Build command from Netlify app
11:15:55 AM: ────────────────────────────────────────────────────────────────
11:15:55 AM: ​
11:15:55 AM: $ npm run build
11:15:55 AM: > music@0.1.0 build
11:15:55 AM: > react-scripts build
11:15:56 AM: Creating an optimized production build…
11:15:58 AM: Failed to compile.
11:15:58 AM:
11:15:58 AM: Module not found: Error: Can’t resolve ‘./Likes_Coll_Btns’ in ‘/opt/build/repo/src/components’
11:15:58 AM: ​
11:15:58 AM: “build.command” failed
11:15:58 AM: ────────────────────────────────────────────────────────────────
11:15:58 AM: ​
11:15:58 AM: Error message
11:15:58 AM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
11:15:58 AM: ​
11:15:58 AM: Error location
11:15:58 AM: In Build command from Netlify app:
11:15:58 AM: npm run build
11:15:58 AM: ​
11:15:58 AM: Resolved config
11:15:58 AM: build:
11:15:58 AM: command: npm run build
11:15:58 AM: commandOrigin: ui
11:15:58 AM: publish: /opt/build/repo/build
11:15:58 AM: publishOrigin: ui
11:15:59 AM: Caching artifacts
11:15:59 AM: Started saving node modules
11:15:59 AM: Finished saving node modules
11:15:59 AM: Started saving build plugins
11:15:59 AM: Finished saving build plugins
11:15:59 AM: Started saving pip cache
11:15:59 AM: Finished saving pip cache
11:15:59 AM: Started saving emacs cask dependencies
11:15:59 AM: Finished saving emacs cask dependencies
11:15:59 AM: Started saving maven dependencies
11:15:59 AM: Finished saving maven dependencies
11:15:59 AM: Started saving boot dependencies
11:15:59 AM: Finished saving boot dependencies
11:16:00 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
11:15:59 AM: Started saving rust rustup cache
11:15:59 AM: Finished saving rust rustup cache
11:15:59 AM: Started saving go dependencies
11:15:59 AM: Finished saving go dependencies
11:16:00 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:16:00 AM: Failing build: Failed to build site
11:16:00 AM: Finished processing build request in 23.659983923s

Hi @pipicoker :wave:t6: ,

My colleague and I already responded to you on this thread: Failed to build in create-react-app - #4 by Melvin

Can you please only respond on one thread? Opening duplicates waste time and slows down our response to you. I will close this thread now. If you have more questions please respond on the thread linked above.

Thanks so much.