Bolt Build failed due to a user error: Build script returned non-zero exit code: 2

I’ve been trying to get a site I built using bolt.new deployed so that I can show a live preview to a client. I’ve tried manually fixing the errors in the code for the pages suggested but still not getting a resolution but just the same error.

(https://lighthearted-twilight-109016.netlify.app)

1:06:04 PM: Netlify Build
1:06:04 PM: ────────────────────────────────────────────────────────────────
1:06:04 PM: ​
1:06:04 PM: ❯ Version
1:06:04 PM: @netlify/build 33.5.1
1:06:04 PM: ​
1:06:04 PM: ❯ Flags
1:06:04 PM: accountId: 67c4dc115fb7fb9838f2db7b
1:06:04 PM: baseRelDir: true
1:06:04 PM: buildId: 686c0c7ec9dd77bcb2f9d660
1:06:04 PM: deployId: 686c0c7ec9dd77bcb2f9d662
1:06:04 PM: ​
1:06:04 PM: ❯ Current directory
1:06:04 PM: /opt/build/repo
1:06:04 PM: ​
1:06:04 PM: ❯ Config file
1:06:04 PM: /opt/build/repo/netlify.toml
1:06:04 PM: ​
1:06:04 PM: ❯ Context
1:06:04 PM: production
1:06:04 PM: ​
1:06:04 PM: build.command from netlify.toml
1:06:04 PM: ────────────────────────────────────────────────────────────────
1:06:04 PM: ​
1:06:04 PM: $ npm run build
1:06:04 PM: > modern-web-solutions@1.0.0 build
1:06:04 PM: > next build
1:06:04 PM: :warning: No build cache found. Please configure build caching for faster rebuilds. Read more: No Cache Detected | Next.js
1:06:04 PM: Creating an optimized production build…
1:06:10 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
1:06:10 PM: Failed to compile.
1:06:10 PM:
1:06:10 PM: ./app/contact/page.tsx
1:06:10 PM: Module not found: Can’t resolve ‘lucide-react/icons/chevron-right’
1:06:10 PM: Module Not Found | Next.js
1:06:10 PM: > Build failed because of webpack errors
1:06:10 PM: ​
1:06:10 PM: “build.command” failed
1:06:10 PM: ────────────────────────────────────────────────────────────────
1:06:10 PM: ​
1:06:10 PM: Error message
1:06:10 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
1:06:10 PM: ​
1:06:10 PM: Error location
1:06:10 PM: In build.command from netlify.toml:
1:06:10 PM: npm run build
1:06:10 PM: ​
1:06:10 PM: Resolved config
1:06:10 PM: build:
1:06:10 PM: command: npm run build
1:06:10 PM: commandOrigin: config
1:06:10 PM: publish: /opt/build/repo/out
1:06:10 PM: publishOrigin: config
1:06:10 PM: headers:
1:06:10 PM: - for: /*
values:
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
- for: /fonts/*
values:
Cache-Control: public, max-age=31536000, immutable
- for: /_next/static/*
values:
Cache-Control: public, max-age=31536000, immutable
headersOrigin: config
redirects:
- from: /api/*
status: 200
to: /.netlify/functions/:splat
redirectsOrigin: config
1:06:10 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:06:10 PM: Failing build: Failed to build site
1:06:10 PM: Finished processing build request in 18.978s

It’s very likely that you’d have to reach out to Bolt for help if Bolt has made this project. But

it says that it can’t find a file. Not sure if Bolt was supposed to add that file or you were or maybe: