My project is open on github:
I’m getting this error and just can’t fix, here is my build log:
4:53:18 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:53:14 PM: Netlify Build
4:53:14 PM: ────────────────────────────────────────────────────────────────
4:53:14 PM:
4:53:14 PM: ❯ Version
4:53:14 PM: @netlify/build 29.17.4
4:53:14 PM:
4:53:14 PM: ❯ Flags
4:53:14 PM: baseRelDir: true
4:53:14 PM: buildId: 64cab41265f6fd0008adab0d
4:53:14 PM: deployId: 64cab41265f6fd0008adab0f
4:53:14 PM:
4:53:14 PM: ❯ Current directory
4:53:14 PM: /opt/build/repo
4:53:14 PM:
4:53:14 PM: ❯ Config file
4:53:14 PM: No config file was defined: using default values.
4:53:14 PM:
4:53:14 PM: ❯ Context
4:53:14 PM: production
4:53:14 PM:
4:53:14 PM: Build command from Netlify app
4:53:14 PM: ────────────────────────────────────────────────────────────────
4:53:14 PM:
4:53:14 PM: $ yarn build
4:53:14 PM: yarn run v1.22.19
4:53:14 PM: $ vite build
4:53:14 PM: vite v4.3.5 building SSR bundle for production...
4:53:14 PM: transforming...
4:53:16 PM: ✓ 137 modules transformed.
4:53:16 PM: ✓ built in 1.38s
4:53:16 PM: [vite:load-fallback] Could not load /opt/build/repo/src/lib/containers/person/PersonForm.svelte (imported by src/routes/person/[personId]/+page.svelte): ENOENT: no such file or directory, open '/opt/build/repo/src/lib/containers/person/PersonForm.svelte'
4:53:16 PM: error during build:
4:53:16 PM: Error: Could not load /opt/build/repo/src/lib/containers/person/PersonForm.svelte (imported by src/routes/person/[personId]/+page.svelte): ENOENT: no such file or directory, open '/opt/build/repo/src/lib/containers/person/PersonForm.svelte'
4:53:16 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
4:53:16 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
4:53:16 PM:
4:53:16 PM: build.command failed
4:53:16 PM: ────────────────────────────────────────────────────────────────
4:53:16 PM:
4:53:16 PM: Error message
4:53:16 PM: Command failed with exit code 1: yarn build (https://ntl.fyi/exit-code-1)
4:53:16 PM:
4:53:16 PM: Error location
4:53:16 PM: In Build command from Netlify app:
4:53:16 PM: yarn build
4:53:16 PM:
4:53:16 PM: Resolved config
4:53:16 PM: build:
4:53:16 PM: command: yarn build
4:53:16 PM: commandOrigin: ui
4:53:16 PM: environment:
4:53:16 PM: - NODE_ENV
4:53:16 PM: - NODE_VERSION
4:53:16 PM: - VITE_API_URL
4:53:16 PM: publish: /opt/build/repo/build
4:53:16 PM: publishOrigin: ui
4:53:18 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:53:18 PM: Failing build: Failed to build site
4:53:19 PM: Finished processing build request in 26.615s