3:46:40 PM: build-image version: 0143b4617dd9b5b3faed2aefa29c54a846e69aae (focal)
3:46:40 PM: buildbot version: 24f7c9fcfdc0e642a0e84524831960fde1f386d1
3:46:40 PM: Fetching cached dependencies
3:46:40 PM: Failed to fetch cache, continuing with build
3:46:40 PM: Starting to prepare the repo for build
3:46:40 PM: No cached dependencies found. Cloning fresh repo
3:46:40 PM: git clone --filter=blob:none git@github.com:sopan212/app
3:46:41 PM: Preparing Git Reference refs/heads/master
3:46:44 PM: Starting to install dependencies
3:46:44 PM: Python version set to 3.8
3:46:44 PM: Attempting Ruby version 2.7.2, read from environment
3:46:44 PM: Using Ruby version 2.7.2
3:46:45 PM: Started restoring cached go cache
3:46:45 PM: Finished restoring cached go cache
3:46:47 PM: go version go1.19.13 linux/amd64
3:46:47 PM: Using PHP version 8.0
3:46:48 PM: v18.18.0 is already installed.
3:46:49 PM: Now using node v18.18.0 (npm v9.8.1)
3:46:49 PM: Enabling Node.js Corepack
3:46:49 PM: Started restoring cached build plugins
3:46:49 PM: Finished restoring cached build plugins
3:46:49 PM: Started restoring cached corepack dependencies
3:46:49 PM: Finished restoring cached corepack dependencies
3:46:49 PM: Started restoring cached yarn cache
3:46:49 PM: Finished restoring cached yarn cache
3:46:49 PM: No yarn workspaces detected
3:46:49 PM: Started restoring cached node modules
3:46:49 PM: Finished restoring cached node modules
3:46:49 PM: Installing npm packages using Yarn version 1.22.19
3:46:50 PM: yarn install v1.22.19
3:46:50 PM: [1/4] Resolving packages…
3:46:50 PM: [2/4] Fetching packages…
3:46:54 PM: [3/4] Linking dependencies…
3:46:55 PM: [4/4] Building fresh packages…
3:46:55 PM: Done in 5.46s.
3:46:55 PM: npm packages installed using Yarn
3:46:56 PM: Install dependencies script success
3:46:56 PM: Starting build script
3:46:56 PM: Detected 1 framework(s)
3:46:56 PM: “vite” at version “4.4.10”
3:46:56 PM: Section completed: initializing
3:46:58 PM:
3:46:58 PM: Netlify Build
3:46:58 PM: ────────────────────────────────────────────────────────────────
3:46:58 PM:
3:46:58 PM: ❯ Version
3:46:58 PM: @netlify/build 29.21.1
3:46:58 PM:
3:46:58 PM: ❯ Flags
3:46:58 PM: baseRelDir: true
3:46:58 PM: buildId: 651d266e8142bb0008dfa6ec
3:46:58 PM: deployId: 651d266e8142bb0008dfa6ee
3:46:58 PM:
3:46:58 PM: ❯ Current directory
3:46:58 PM: /opt/build/repo
3:46:58 PM:
3:46:58 PM: ❯ Config file
3:46:58 PM: /opt/build/repo/netlify.toml
3:46:58 PM:
3:46:58 PM: ❯ Context
3:46:58 PM: production
3:46:58 PM:
3:46:58 PM: Build command from Netlify app
3:46:58 PM: ────────────────────────────────────────────────────────────────
3:46:58 PM:
3:46:58 PM: $ yarn build
3:46:58 PM: yarn run v1.22.19
3:46:58 PM: $ vite build
3:46:58 PM: vite v4.4.10 building for production…
3:46:58 PM: transforming…
3:46:59 PM: ✓ 45 modules transformed.
3:46:59 PM: ✓ built in 938ms
3:46:59 PM: Could not resolve “…/global/Header.jsx” from “src/pages/Home.jsx”
3:46:59 PM: file: /opt/build/repo/src/pages/Home.jsx
3:46:59 PM: error during build:
3:46:59 PM: RollupError: Could not resolve “…/global/Header.jsx” from “src/pages/Home.jsx”
3:46:59 PM: at error (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
3:46:59 PM: at ModuleLoader.handleInvalidResolvedId (file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24860:24)
3:46:59 PM: at file:///opt/build/repo/node_modules/rollup/dist/es/shared/node-entry.js:24822:26
3:46:59 PM: error Command failed with exit code 1. (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
3:46:59 PM: info Visit yarn run | Yarn for documentation about this command.
3:46:59 PM:
3:46:59 PM: “build.command” failed
3:46:59 PM: ────────────────────────────────────────────────────────────────
3:46:59 PM:
3:46:59 PM: Error message
3:46:59 PM: Command failed with exit code 1: yarn build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
3:46:59 PM:
3:46:59 PM: Error location
3:46:59 PM: In Build command from Netlify app:
3:46:59 PM: yarn build
3:46:59 PM:
3:46:59 PM: Resolved config
3:46:59 PM: build:
3:46:59 PM: command: yarn build
3:46:59 PM: commandOrigin: ui
3:46:59 PM: publish: /opt/build/repo/dist/project
3:46:59 PM: publishOrigin: ui
3:46:59 PM: functionsDirectory: /opt/build/repo/netlify/functions
3:46:59 PM: redirects:
3:47:00 PM: - from: /*
status: 200
to: /index.html
redirectsOrigin: config
Caching artifacts
3:47:00 PM: Started saving node modules
3:47:00 PM: Finished saving node modules
3:47:00 PM: Started saving build plugins
3:47:00 PM: Finished saving build plugins
3:47:00 PM: Started saving corepack cache
3:47:00 PM: Finished saving corepack cache
3:47:00 PM: Started saving yarn cache
3:47:00 PM: Finished saving yarn cache
3:47:00 PM: Started saving pip cache
3:47:00 PM: Finished saving pip cache
3:47:00 PM: Started saving emacs cask dependencies
3:47:00 PM: Finished saving emacs cask dependencies
3:47:00 PM: Started saving maven dependencies
3:47:00 PM: Finished saving maven dependencies
3:47:00 PM: Started saving boot dependencies
3:47:00 PM: Finished saving boot dependencies
3:47:00 PM: Started saving rust rustup cache
3:47:00 PM: Finished saving rust rustup cache
3:47:00 PM: Started saving go dependencies
3:47:00 PM: Finished saving go dependencies
3:47:01 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:47:01 PM: Failing build: Failed to build site
3:47:01 PM: Finished processing build request in 21.39s
3:47:01 PM: Failed during stage “building site”: Build script returned non-zero exit code: 2
Hi @sopan212
Welcome to the Community!
I suggest you start here: [Support Guide] Failed build debugging advice - preparing the best help request
These resources may also be helpful: [Support Guide] Compiled Build and Deploy Resources -- start here!