I deployment my nextjs app, am not sure the error since my app is not deployed. Here is my deployment logs

1:57:20 PM: Build ready to start
1:57:23 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
1:57:23 PM: build-image tag: v4.10.1
1:57:23 PM: buildbot version: 2009834004fbab70d95494495d61f0ada38da28b
1:57:23 PM: Fetching cached dependencies
1:57:23 PM: Failed to fetch cache, continuing with build
1:57:23 PM: Starting to prepare the repo for build
1:57:23 PM: No cached dependencies found. Cloning fresh repo
1:57:23 PM: git clone GitHub - thewebalchemist/berack: Re-usable and re-workable components designed to be hacked at. Start here, add your own style, and build something awesome.
1:57:43 PM: Preparing Git Reference refs/heads/master
1:57:44 PM: Parsing package.json dependencies
1:57:45 PM: Starting build script
1:57:45 PM: Installing dependencies
1:57:45 PM: Python version set to 2.7
1:57:45 PM: v16.16.0 is already installed.
1:57:46 PM: Now using node v16.16.0 (npm v8.11.0)
1:57:46 PM: Started restoring cached build plugins
1:57:46 PM: Finished restoring cached build plugins
1:57:46 PM: Attempting ruby version 2.7.2, read from environment
1:57:46 PM: Using ruby version 2.7.2
1:57:47 PM: Using PHP version 8.0
1:57:47 PM: No npm workspaces detected
1:57:47 PM: Started restoring cached node modules
1:57:47 PM: Finished restoring cached node modules
1:57:47 PM: Installing NPM modules using NPM version 8.11.0
1:57:47 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:57:47 PM: npm WARN config location in the cache, and they are managed by
1:57:47 PM: npm WARN config cacache.
1:57:48 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:57:48 PM: npm WARN config location in the cache, and they are managed by
1:57:48 PM: npm WARN config cacache.
1:57:59 PM: npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
1:58:05 PM: added 710 packages, and audited 711 packages in 18s
1:58:05 PM: 163 packages are looking for funding
1:58:05 PM: run npm fund for details
1:58:05 PM: 4 vulnerabilities (3 high, 1 critical)
1:58:05 PM: To address issues that do not require attention, run:
1:58:05 PM: npm audit fix
1:58:05 PM: To address all issues, run:
1:58:05 PM: npm audit fix --force
1:58:05 PM: Run npm audit for details.
1:58:05 PM: NPM modules installed
1:58:06 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:58:06 PM: npm WARN config location in the cache, and they are managed by
1:58:06 PM: npm WARN config cacache.
1:58:06 PM: Started restoring cached go cache
1:58:06 PM: Finished restoring cached go cache
1:58:06 PM: Installing Go version 1.17 (requested 1.17)
1:58:11 PM: unset GOOS;
1:58:11 PM: unset GOARCH;
1:58:11 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
1:58:11 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
1:58:11 PM: go version >&2;
1:58:11 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
1:58:11 PM: go version go1.17 linux/amd64
1:58:11 PM: Installing missing commands
1:58:11 PM: Verify run directory
1:58:12 PM: ​
1:58:12 PM: ────────────────────────────────────────────────────────────────
1:58:12 PM: Netlify Build
1:58:12 PM: ────────────────────────────────────────────────────────────────
1:58:12 PM: ​
1:58:12 PM: ❯ Version
1:58:12 PM: @netlify/build 27.9.1
1:58:12 PM: ​
1:58:12 PM: ❯ Flags
1:58:12 PM: baseRelDir: true
1:58:12 PM: buildId: 62f38f10f9296c2b9f432e18
1:58:12 PM: deployId: 62f38f10f9296c2b9f432e1a
1:58:12 PM: systemLogFile: 0
1:58:12 PM: ​
1:58:12 PM: ❯ Current directory
1:58:12 PM: /opt/build/repo
1:58:12 PM: ​
1:58:12 PM: ❯ Config file
1:58:12 PM: No config file was defined: using default values.
1:58:12 PM: ​
1:58:12 PM: ❯ Context
1:58:12 PM: production
1:58:12 PM: ​
1:58:12 PM: ❯ Installing plugins
1:58:12 PM: - @netlify/plugin-nextjs@4.12.2
1:58:19 PM: ​
1:58:19 PM: ❯ Loading plugins
1:58:19 PM: - @netlify/plugin-nextjs@4.12.2 from Netlify app
1:58:20 PM: ​
1:58:20 PM: ────────────────────────────────────────────────────────────────
1:58:20 PM: 1. @netlify/plugin-nextjs (onPreBuild event)
1:58:20 PM: ────────────────────────────────────────────────────────────────
1:58:20 PM: ​
1:58:20 PM: No Next.js cache to restore.
1:58:20 PM: Netlify configuration property “build.environment.NEXT_PRIVATE_TARGET” value changed.
1:58:20 PM: ​
1:58:20 PM: (@netlify/plugin-nextjs onPreBuild completed in 16ms)
1:58:20 PM: ​
1:58:20 PM: ────────────────────────────────────────────────────────────────
1:58:20 PM: 2. Build command from Netlify app
1:58:20 PM: ────────────────────────────────────────────────────────────────
1:58:20 PM: ​
1:58:20 PM: $ npm run build
1:58:20 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:58:20 PM: npm WARN config location in the cache, and they are managed by
1:58:20 PM: npm WARN config cacache.
1:58:20 PM: > build
1:58:20 PM: > next build && npm export
1:58:21 PM: info - Loaded env from /opt/build/repo/.env.local
1:58:21 PM: info - Loaded env from /opt/build/repo/.env
1:58:21 PM: info - Checking validity of types…
1:58:21 PM: warn - No ESLint configuration detected. Run next lint to begin setup
1:58:21 PM: info - Creating an optimized production build…
1:58:35 PM: info - Compiled successfully
1:58:35 PM: info - Collecting page data…
1:58:40 PM: info - Generating static pages (0/82)
1:58:40 PM: info - Generating static pages (20/82)
1:58:41 PM: info - Generating static pages (40/82)
1:58:42 PM: info - Generating static pages (61/82)
1:58:42 PM: info - Generating static pages (82/82)
1:58:42 PM: info - Finalizing page optimization…
1:58:43 PM: Page Size First Load JS
1:58:43 PM: ┌ ● / (2448 ms) 3.64 kB 326 kB
1:58:43 PM: ├ /_app 0 B 83.8 kB
1:58:43 PM: ├ ○ /404 750 B 84.6 kB
1:58:43 PM: ├ λ /api/contact 0 B 83.8 kB
1:58:43 PM: ├ λ /api/hello 0 B 83.8 kB
1:58:43 PM: ├ λ /api/subscribe 0 B 83.8 kB
1:58:43 PM: ├ ● /blocks/[id] (17361 ms) 703 B 84.6 kB
1:58:43 PM: ├ ├ /blocks/Button-group (2208 ms)
1:58:43 PM: ├ ├ /blocks/Alerts (2202 ms)
1:58:43 PM: ├ ├ /blocks/Breadcrumbs (2198 ms)
1:58:43 PM: ├ ├ /blocks/Badge (2197 ms)
1:58:43 PM: ├ ├ /blocks/Carousel (2096 ms)
1:58:43 PM: ├ ├ /blocks/Accordion (2016 ms)
1:58:43 PM: ├ ├ /blocks/Floating-label (398 ms)
1:58:43 PM: ├ └ [+29 more paths]
1:58:43 PM: ├ ○ /components/alerts (2720 ms) 3.92 kB 326 kB
1:58:43 PM: ├ ○ /components/buttons (2691 ms) 3.9 kB 326 kB
1:58:43 PM: ├ ○ /components/introduction 973 B 84.8 kB
1:58:43 PM: ├ ○ /components/sidebar 951 B 84.8 kB
1:58:43 PM: ├ ● /contact 198 B 88.9 kB
1:58:43 PM: ├ ○ /layout 194 B 84 kB
1:58:43 PM: ├ ● /me (2154 ms) 3.22 kB 105 kB
1:58:43 PM: ├ ● /memes (348 ms) 6.82 kB 90.7 kB
1:58:43 PM: ├ ○ /memes/hero 395 B 84.2 kB
1:58:43 PM: ├ ○ /memes/sample 253 B 84.1 kB
1:58:43 PM: ├ ○ /portfolio/banner1 721 B 84.6 kB
1:58:43 PM: ├ ○ /portfolio/casestudy 668 B 98 kB
1:58:43 PM: ├ ○ /portfolio/development 1.13 kB 85 kB
1:58:43 PM: ├ ○ /portfolio/footer 202 B 84 kB
1:58:43 PM: ├ ○ /portfolio/hero 1.1 kB 85 kB
1:58:43 PM: ├ ○ /portfolio/image-gallery 671 B 84.5 kB
1:58:43 PM: ├ ○ /portfolio/navbar 201 B 84 kB
1:58:43 PM: ├ ○ /portfolio/our-approach 1.8 kB 85.7 kB
1:58:43 PM: ├ ● /portfolio/technologies (2248 ms) 815 B 84.7 kB
1:58:43 PM: ├ ○ /portfolio/testimonials (353 ms) 1.74 kB 99.1 kB
1:58:43 PM: ├ ○ /tailwind/banner 878 B 84.7 kB
1:58:43 PM: ├ ● /tailwind/blocks (2252 ms) 716 B 84.6 kB
1:58:43 PM: ├ ○ /tailwind/codehighight (2655 ms) 1.23 kB 323 kB
1:58:43 PM: ├ ○ /tailwind/features 1.24 kB 85.1 kB
1:58:43 PM: ├ ○ /tailwind/hero 891 B 84.7 kB
1:58:43 PM: ├ ○ /tailwind/menu 547 B 84.4 kB
1:58:43 PM: ├ ● /technologies/[id] (25331 ms) 1.17 kB 85 kB
1:58:43 PM: ├ ├ /technologies/java (2218 ms)
1:58:43 PM: ├ ├ /technologies/wordpress (2217 ms)
1:58:43 PM: ├ ├ /technologies/figma (2207 ms)
1:58:43 PM: ├ ├ /technologies/laravel (2206 ms)
1:58:43 PM: ├ ├ /technologies/canva (2203 ms)
1:58:43 PM: ├ ├ /technologies/reactjs (2203 ms)
1:58:43 PM: ├ ├ /technologies/nextjs (2202 ms)
1:58:43 PM: ├ └ [+8 more paths] (avg 1234 ms)
1:58:43 PM: ├ ○ /templates/templates 1.34 kB 85.2 kB
1:58:43 PM: └ ○ /ui 256 B 84.1 kB
1:58:43 PM: + First Load JS shared by all 83.8 kB
1:58:43 PM: ├ chunks/framework-91d7f78b5b4003c8.js 42 kB
1:58:43 PM: ├ chunks/main-e47bb435dabe4202.js 26.9 kB
1:58:43 PM: ├ chunks/pages/_app-5c39c4433b749578.js 14.1 kB
1:58:43 PM: ├ chunks/webpack-b927671265afed5e.js 841 B
1:58:43 PM: └ css/af5810257ebd7b17.css 7.44 kB
1:58:43 PM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
1:58:43 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
1:58:43 PM: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
1:58:43 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
1:58:43 PM: npm WARN config location in the cache, and they are managed by
1:58:43 PM: npm WARN config cacache.
1:58:43 PM: Unknown command: “export”
1:58:43 PM: Did you mean this?
1:58:43 PM: npm explore # Browse an installed package
1:58:43 PM: To see a list of supported npm commands, run:
1:58:43 PM: npm help
1:58:43 PM: ​
1:58:43 PM: ────────────────────────────────────────────────────────────────
1:58:43 PM: “build.command” failed
1:58:43 PM: ────────────────────────────────────────────────────────────────
1:58:43 PM: ​
1:58:43 PM: Error message
1:58:43 PM: Command failed with exit code 1: npm run build
1:58:43 PM: ​
1:58:43 PM: Error location
1:58:43 PM: In Build command from Netlify app:
1:58:43 PM: npm run build
1:58:43 PM: ​
1:58:43 PM: Resolved config
1:58:43 PM: build:
1:58:43 PM: command: npm run build
1:58:43 PM: commandOrigin: ui
1:58:43 PM: environment:
1:58:43 PM: - NEXT_PRIVATE_TARGET
1:58:43 PM: publish: /opt/build/repo/.next
1:58:43 PM: publishOrigin: ui
1:58:43 PM: plugins:
1:58:43 PM: - inputs: {}
1:58:43 PM: origin: ui
1:58:43 PM: package: ‘@netlify/plugin-nextjs’
1:58:43 PM: Caching artifacts
1:58:43 PM: Started saving node modules
1:58:43 PM: Finished saving node modules
1:58:43 PM: Started saving build plugins
1:58:43 PM: Finished saving build plugins
1:58:43 PM: Started saving pip cache
1:58:43 PM: Finished saving pip cache
1:58:43 PM: Started saving emacs cask dependencies
1:58:43 PM: Finished saving emacs cask dependencies
1:58:43 PM: Started saving maven dependencies
1:58:43 PM: Finished saving maven dependencies
1:58:43 PM: Started saving boot dependencies
1:58:43 PM: Finished saving boot dependencies
1:58:43 PM: Started saving rust rustup cache
1:58:43 PM: Finished saving rust rustup cache
1:58:43 PM: Started saving go dependencies
1:58:43 PM: Finished saving go dependencies
1:58:44 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:58:44 PM: Creating deploy upload records
1:58:44 PM: Failing build: Failed to build site
1:58:44 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
1:58:45 PM: Finished processing build request in 1m21.757775349s

Hey @berackaunda :wave:

Thanks for reaching out. Sorry to hear you have encountered an obstacle. Can you please share a link to your deployed site so that we can investigate further? Additionally, can you share your build settings?