I have a simple NextJS app I just upgraded to Next 14. And the build is failing without giving me an error message, just a code:
3:02:48 PM: Netlify Build
3:02:48 PM: ────────────────────────────────────────────────────────────────
3:02:48 PM:
3:02:48 PM: ❯ Version
3:02:48 PM: @netlify/build 29.26.2
3:02:48 PM:
3:02:48 PM: ❯ Flags
3:02:48 PM: baseRelDir: true
3:02:48 PM: buildId: 654d3ad001154500085623c1
3:02:48 PM: deployId: 654d3ad001154500085623c3
3:02:48 PM:
3:02:48 PM: ❯ Current directory
3:02:48 PM: /opt/build/repo
3:02:48 PM:
3:02:48 PM: ❯ Config file
3:02:48 PM: No config file was defined: using default values.
3:02:48 PM:
3:02:48 PM: ❯ Context
3:02:48 PM: production
3:02:48 PM:
3:02:48 PM: ❯ Installing plugins
3:02:48 PM: - @netlify/plugin-nextjs@4.41.1
3:02:59 PM:
3:02:59 PM: ❯ Using Next.js Runtime - v4.41.1
3:03:00 PM:
3:03:00 PM: @netlify/plugin-nextjs (onPreBuild event)
3:03:00 PM: ────────────────────────────────────────────────────────────────
3:03:00 PM:
3:03:00 PM: No Next.js cache to restore.
3:03:00 PM: Not running Next Runtime
3:03:00 PM:
3:03:00 PM: (@netlify/plugin-nextjs onPreBuild completed in 13ms)
3:03:00 PM:
3:03:00 PM: Build command from Netlify app
3:03:00 PM: ────────────────────────────────────────────────────────────────
3:03:00 PM:
3:03:00 PM: $ yarn build && yarn export
3:03:01 PM: ⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
3:03:02 PM: Linting and checking validity of types ...
3:03:05 PM: ▲ Next.js 14.0.2
3:03:05 PM: Creating an optimized production build ...
3:03:11 PM: ✓ Compiled successfully
3:03:11 PM: Collecting page data ...
3:03:15 PM: Generating static pages (0/3) ...
3:03:16 PM: ✓ Generating static pages (3/3)
3:03:17 PM: Finalizing page optimization ...
3:03:17 PM: Collecting build traces ...
3:03:27 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
3:03:27 PM:
3:03:27 PM: "build.command" failed
3:03:27 PM: ────────────────────────────────────────────────────────────────
3:03:27 PM:
3:03:27 PM: Error message
3:03:27 PM: Command failed with exit code 129: yarn build && yarn export (https://ntl.fyi/exit-code-129)
3:03:27 PM:
3:03:27 PM: Error location
3:03:27 PM: In Build command from Netlify app:
3:03:27 PM: yarn build && yarn export
3:03:27 PM:
3:03:27 PM: Resolved config
3:03:27 PM: build:
3:03:27 PM: command: yarn build && yarn export
3:03:27 PM: commandOrigin: ui
3:03:27 PM: environment:
3:03:27 PM: - DOPPLER_CONFIG
3:03:27 PM: - DOPPLER_ENVIRONMENT
3:03:27 PM: - DOPPLER_PROJECT
3:03:27 PM: - NETLIFY_NEXT_PLUGIN_SKIP
3:03:27 PM: - NEXT_PUBLIC_DONATION_GOAL
3:03:27 PM: - NEXT_PUBLIC_FAUNA_SECRET
3:03:27 PM: - NEXT_PUBLIC_FAUNA_URL
3:03:27 PM: - NEXT_PUBLIC_GA_TRACKING_ID
3:03:27 PM: - NEXT_PUBLIC_PAYPAL_CLIENT_ID
3:03:27 PM: - NEXT_PUBLIC_SITE_URL
3:03:27 PM: - NEXT_PUBLIC_TRAILER_URL
3:03:27 PM: publish: /opt/build/repo/out
3:03:27 PM: publishOrigin: ui
3:03:27 PM: plugins:
3:03:27 PM: - inputs: {}
3:03:27 PM: origin: ui
3:03:27 PM: package: "@netlify/plugin-nextjs"
3:03:27 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:03:27 PM: Failing build: Failed to build site
3:03:28 PM: Finished processing build request in 1m2.231s
Could someone help me out with this one, please?