1:40:15 PM: Build ready to start 1:40:16 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68 1:40:16 PM: build-image tag: v3.6.1 1:40:16 PM: buildbot version: 27be6592b39306bdec80847ba03a6f4c72a95d89 1:40:16 PM: Fetching cached dependencies 1:40:17 PM: Starting to download cache of 189.3MB 1:40:18 PM: Finished downloading cache in 1.748557535s 1:40:18 PM: Starting to extract cache 1:40:24 PM: Finished extracting cache in 6.299246092s 1:40:25 PM: Finished fetching cache in 8.10749867s 1:40:25 PM: Starting to prepare the repo for build 1:40:25 PM: Preparing Git Reference refs/heads/main 1:40:27 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: 'Learning/Gatsby/firstLook' versus '/Learning/Gatsby/firstLook/' in the Netlify UI 1:40:27 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'Learning/Gatsby/firstLook/public' versus 'public/' in the Netlify UI 1:40:27 PM: Starting build script 1:40:27 PM: Installing dependencies 1:40:27 PM: Python version set to 2.7 1:40:27 PM: Started restoring cached node version 1:40:30 PM: Finished restoring cached node version 1:40:30 PM: v12.18.0 is already installed. 1:40:31 PM: Now using node v12.18.0 (npm v6.14.4) 1:40:31 PM: Started restoring cached build plugins 1:40:31 PM: Finished restoring cached build plugins 1:40:31 PM: Attempting ruby version 2.7.1, read from environment 1:40:32 PM: Using ruby version 2.7.1 1:40:33 PM: Using PHP version 5.6 1:40:33 PM: Started restoring cached node modules 1:40:33 PM: Finished restoring cached node modules 1:40:33 PM: Started restoring cached go cache 1:40:33 PM: Finished restoring cached go cache 1:40:33 PM: go version go1.14.4 linux/amd64 1:40:33 PM: go version go1.14.4 linux/amd64 1:40:33 PM: Installing missing commands 1:40:33 PM: Verify run directory 1:40:34 PM: ​ 1:40:34 PM: ──────────────────────────────────────────────────────────────── 1:40:34 PM: Netlify Build 1:40:34 PM: ──────────────────────────────────────────────────────────────── 1:40:34 PM: ​ 1:40:34 PM: ❯ Version 1:40:34 PM: @netlify/build 9.2.0 1:40:34 PM: ​ 1:40:34 PM: ❯ Flags 1:40:34 PM: deployId: 6037a8bffbc9fe0007abd7f5 1:40:34 PM: mode: buildbot 1:40:34 PM: ​ 1:40:34 PM: ❯ Current directory 1:40:34 PM: /opt/build/repo/Learning/Gatsby/firstLook 1:40:34 PM: ​ 1:40:34 PM: ❯ Config file 1:40:34 PM: No config file was defined: using default values. 1:40:34 PM: ​ 1:40:34 PM: ❯ Context 1:40:34 PM: production 1:40:34 PM: ​ 1:40:34 PM: ──────────────────────────────────────────────────────────────── 1:40:34 PM: 1. Build command from Netlify app 1:40:34 PM: ──────────────────────────────────────────────────────────────── 1:40:34 PM: ​ 1:40:34 PM: $ gatsby build 1:40:38 PM: success open and validate gatsby-configs - 0.034s 1:40:38 PM: success load plugins - 0.566s 1:40:38 PM: success onPreInit - 0.037s 1:40:38 PM: success delete html and css files from previous builds - 0.003s 1:40:38 PM: success initialize cache - 0.069s 1:40:38 PM: success copy gatsby files - 0.046s 1:40:38 PM: success onPreBootstrap - 0.015s 1:40:39 PM: success createSchemaCustomization - 0.006s 1:40:39 PM: success Checking for changed pages - 0.000s 1:40:39 PM: success source and transform nodes - 0.161s 1:40:39 PM: success building schema - 0.315s 1:40:39 PM: info Total nodes: 68, SitePage nodes: 1 (use --verbose for breakdown) 1:40:39 PM: success createPages - 0.001s 1:40:39 PM: success Checking for changed pages - 0.000s 1:40:39 PM: success createPagesStatefully - 0.070s 1:40:39 PM: success update schema - 0.021s 1:40:39 PM: success onPreExtractQueries - 0.000s 1:40:40 PM: success extract queries from components - 0.536s 1:40:40 PM: success write out redirect data - 0.001s 1:40:40 PM: success Build manifest and related icons - 0.268s 1:40:40 PM: success onPostBootstrap - 0.271s 1:40:40 PM: info bootstrap finished - 5.457s 1:40:49 PM: success run static queries - 8.954s - 7/7 0.78/s 1:40:49 PM: success run page queries - 0.014s - 7/7 484.15/s 1:40:49 PM: success write out requires - 0.004s 1:41:05 PM: failed Building production JavaScript and CSS bundles - 15.769s 1:41:05 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 1:41:05 PM: error Generating JavaScript bundles failed 1:41:05 PM: Can't resolve '../components/hooks/useFetch' in '/opt/build/repo/Learning/Gatsby/firstLook/src/pages' 1:41:05 PM: If you're trying to use a package make sure that '../components/hooks/useFetch' is installed. If you're trying to use a local file make sure that the path is correct. 1:41:05 PM: error Generating JavaScript bundles failed 1:41:05 PM: Can't resolve '../components/hooks/useForm' in '/opt/build/repo/Learning/Gatsby/firstLook/src/pages' 1:41:05 PM: If you're trying to use a package make sure that '../components/hooks/useForm' is installed. If you're trying to use a local file make sure that the path is correct. 1:41:05 PM: error Generating JavaScript bundles failed 1:41:05 PM: Can't resolve '../components/hooks/useTextFetch' in '/opt/build/repo/Learning/Gatsby/firstLook/src/pages' 1:41:05 PM: If you're trying to use a package make sure that '../components/hooks/useTextFetch' is installed. If you're trying to use a local file make sure that the path is correct. 1:41:05 PM: not finished Generating image thumbnails - 24.720s 1:41:05 PM: ​ 1:41:05 PM: ──────────────────────────────────────────────────────────────── 1:41:05 PM: "build.command" failed 1:41:05 PM: ──────────────────────────────────────────────────────────────── 1:41:05 PM: ​ 1:41:05 PM: Error message 1:41:05 PM: Command failed with exit code 1: gatsby build 1:41:05 PM: ​ 1:41:05 PM: Error location 1:41:05 PM: In Build command from Netlify app: 1:41:05 PM: gatsby build 1:41:05 PM: ​ 1:41:05 PM: Resolved config 1:41:05 PM: build: 1:41:05 PM: base: /opt/build/repo/Learning/Gatsby/firstLook 1:41:05 PM: command: gatsby build 1:41:05 PM: commandOrigin: ui 1:41:05 PM: publish: /opt/build/repo/Learning/Gatsby/firstLook/public 1:41:05 PM: Caching artifacts 1:41:05 PM: Started saving node modules 1:41:05 PM: Finished saving node modules 1:41:05 PM: Started saving build plugins 1:41:05 PM: Finished saving build plugins 1:41:05 PM: Started saving pip cache 1:41:05 PM: Finished saving pip cache 1:41:05 PM: Started saving emacs cask dependencies 1:41:05 PM: Finished saving emacs cask dependencies 1:41:05 PM: Started saving maven dependencies 1:41:05 PM: Finished saving maven dependencies 1:41:05 PM: Started saving boot dependencies 1:41:05 PM: Finished saving boot dependencies 1:41:05 PM: Started saving rust rustup cache 1:41:05 PM: Finished saving rust rustup cache 1:41:05 PM: Started saving go dependencies 1:41:05 PM: Finished saving go dependencies 1:41:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2 1:41:05 PM: Failing build: Failed to build site 1:41:06 PM: Finished processing build request in 49.868682937s