HI everyone i'm getting error during depolyment

PLEASE help us help you by writing a good post!

  • We need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot
  • Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.

The better the post - the faster the answer.
8:18:45 AM: build-image version: fcb0c1b3ada6d25c1cb58e8bc514f5f23cc14f15 (focal)
8:18:45 AM: buildbot version: b01fe4bfba24ebbf2be94776e35d0c0d9decd607
8:18:45 AM: Fetching cached dependencies
8:18:45 AM: Starting to download cache of 130.8MB
8:18:46 AM: Finished downloading cache in 1.234s
8:18:46 AM: Starting to extract cache
8:18:49 AM: Finished extracting cache in 3.232s
8:18:49 AM: Finished fetching cache in 4.528s
8:18:49 AM: Starting to prepare the repo for build
8:18:49 AM: Preparing Git Reference refs/heads/main
8:18:51 AM: Starting to install dependencies
8:18:51 AM: Python version set to 3.8
8:18:51 AM: Attempting Ruby version 2.7.2, read from environment
8:18:52 AM: Using Ruby version 2.7.2
8:18:52 AM: Started restoring cached go cache
8:18:52 AM: Finished restoring cached go cache
8:18:53 AM: go version go1.19.13 linux/amd64
8:18:54 AM: Using PHP version 8.0
8:18:54 AM: Started restoring cached Node.js version
8:18:55 AM: Finished restoring cached Node.js version
8:18:56 AM: v18.19.0 is already installed.
8:18:56 AM: Now using node v18.19.0 (npm v10.2.3)
8:18:56 AM: Enabling Node.js Corepack
8:18:56 AM: Started restoring cached build plugins
8:18:56 AM: Finished restoring cached build plugins
8:18:56 AM: Started restoring cached corepack dependencies
8:18:56 AM: Finished restoring cached corepack dependencies
8:18:56 AM: No npm workspaces detected
8:18:56 AM: Started restoring cached node modules
8:18:56 AM: Finished restoring cached node modules
8:18:56 AM: Installing npm packages using npm version 10.2.3
8:19:03 AM: up to date, audited 2468 packages in 7s
8:19:03 AM: 286 packages are looking for funding
8:19:03 AM: run npm fund for details
8:19:03 AM: 43 vulnerabilities (1 low, 28 moderate, 14 high)
8:19:03 AM: To address issues that do not require attention, run:
8:19:03 AM: npm audit fix
8:19:03 AM: To address all issues possible (including breaking changes), run:
8:19:03 AM: npm audit fix --force
8:19:03 AM: Some issues need review, and may require choosing
8:19:03 AM: a different dependency.
8:19:03 AM: Run npm audit for details.
8:19:03 AM: npm packages installed
8:19:04 AM: Successfully installed dependencies
8:19:04 AM: Starting build script
8:19:05 AM: Detected 1 framework(s)
8:19:05 AM: “create-react-app” at version “5.0.1”
8:19:05 AM: Section completed: initializing
8:19:06 AM: ​
8:19:06 AM: Netlify Build
8:19:06 AM: ────────────────────────────────────────────────────────────────
8:19:06 AM: ​
8:19:06 AM: ❯ Version
8:19:06 AM: @netlify/build 29.33.2
8:19:06 AM: ​
8:19:06 AM: ❯ Flags
8:19:06 AM: baseRelDir: true
8:19:06 AM: buildId: 65bda98b229ee63a6dc567fc
8:19:06 AM: deployId: 65bda98b229ee63a6dc567fe
8:19:06 AM: ​
8:19:06 AM: ❯ Current directory
8:19:06 AM: /opt/build/repo
8:19:06 AM: ​
8:19:06 AM: ❯ Config file
8:19:06 AM: /opt/build/repo/netlify.toml
8:19:06 AM: ​
8:19:06 AM: ❯ Context
8:19:06 AM: production
8:19:06 AM: ​
8:19:06 AM: Build command from Netlify app
8:19:06 AM: ────────────────────────────────────────────────────────────────
8:19:06 AM: ​
8:19:06 AM: $ npm run build
8:19:06 AM: > signin-app@0.1.0 build
8:19:06 AM: > react-scripts build
8:19:07 AM: Creating an optimized production build…
8:19:09 AM: Failed during stage “building site”: Build script returned non-zero exit code: 2
8:19:09 AM: Failed to compile.
8:19:09 AM:
8:19:09 AM: Module not found: Error: Can"t resolve “…/pages/Signin/Signin” in “/opt/build/repo/src/routers”
8:19:09 AM: ​
8:19:09 AM: “build.command” failed
8:19:09 AM: ────────────────────────────────────────────────────────────────
8:19:09 AM: ​
8:19:09 AM: Error message
8:19:09 AM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
8:19:09 AM: ​
8:19:09 AM: Error location
8:19:09 AM: In Build command from Netlify app:
8:19:09 AM: npm run build
8:19:09 AM: ​
8:19:09 AM: Resolved config
8:19:09 AM: build:
8:19:09 AM: command: npm run build
8:19:09 AM: commandOrigin: ui
8:19:09 AM: environment:
8:19:09 AM: - CI
8:19:09 AM: publish: /opt/build/repo/build
8:19:09 AM: publishOrigin: ui
8:19:09 AM: redirects:
8:19:09 AM: - from: /*
status: 200
to: index.html
redirectsOrigin: config
8:19:09 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:19:09 AM: Failing build: Failed to build site
8:19:09 AM: Finished processing build request in 24.689s

@Sanjay The relevant error is:

Taking a bit of a wild guess with the limited information available, since I see some capital letters in there, the most likely issue is case-sensitivity.

The Netlify build environment is case-sensitive, so you should ensure that your filenames & references are correct.

In this case check the files/references related to pages/Signin/Signin

You should make sure the filenames/references are correct in your repository too, depending on your settings sometimes they can show one thing locally on your system but another in the repository.