Hey, I have problems with my Nuxt3 app. The build process fails.
I tried severla build commands, which didn’t work either (nuxi generate, nuxt build, npm run build) …
Happy with any help!
1:55:20 PM: Netlify Build
1:55:20 PM: ────────────────────────────────────────────────────────────────
1:55:20 PM:
1:55:20 PM: ❯ Version
1:55:20 PM: @netlify/build 29.41.1
1:55:20 PM:
1:55:20 PM: ❯ Flags
1:55:20 PM: baseRelDir: true
1:55:20 PM: buildId: 6634d0841b1b3300080709f1
1:55:20 PM: deployId: 6634d0841b1b3300080709f3
1:55:20 PM:
1:55:20 PM: ❯ Current directory
1:55:20 PM: /opt/build/repo
1:55:20 PM:
1:55:20 PM: ❯ Config file
1:55:20 PM: No config file was defined: using default values.
1:55:20 PM:
1:55:20 PM: ❯ Context
1:55:20 PM: production
1:55:20 PM:
1:55:20 PM: Build command from Netlify app
1:55:20 PM: ────────────────────────────────────────────────────────────────
1:55:20 PM:
1:55:20 PM: $ nuxt build
1:55:20 PM: [log] Nuxt 3.11.2 with Nitro 2.9.6
1:55:22 PM: [info] Building client…
1:55:23 PM: [info] vite v5.2.10 building for production…
1:55:23 PM: [info] transforming…
1:55:29 PM: [info] ✓ 5388 modules transformed.
1:55:30 PM: [info] rendering chunks…
1:55:30 PM: [info] computing gzip size…
1:55:30 PM: [info] .nuxt/dist/client/manifest.json 4.86 kB │ gzip: 0.80 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/banner.BsmJ93Pw.webp 45.35 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/error-500.CNP9nqm1.css 1.88 kB │ gzip: 0.72 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/error-404.JekaaCis.css 3.56 kB │ gzip: 1.10 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/entry.CdsoFex7.css 9.60 kB │ gzip: 2.46 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/DlAUqK2U.js 0.09 kB │ gzip: 0.10 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/C85DoKUu.js 0.29 kB │ gzip: 0.23 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/x7fefleh.js 0.55 kB │ gzip: 0.32 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/CH43RzdS.js 0.73 kB │ gzip: 0.45 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/Jc3v_FD4.js 0.79 kB │ gzip: 0.44 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/BKaIystU.js 1.11 kB │ gzip: 0.59 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/Bk6Ctj8S.js 1.20 kB │ gzip: 0.61 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/DY9-DMGk.js 1.73 kB │ gzip: 0.93 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/CjuFTnTV.js 2.46 kB │ gzip: 1.08 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/DkH30_W1.js 2.65 kB │ gzip: 1.28 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/BvMfRLtj.js 2.77 kB │ gzip: 1.24 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/xnCW4ifW.js 2.91 kB │ gzip: 1.33 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/V_oSw2lb.js 3.13 kB │ gzip: 1.41 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/C5JiZVSx.js 3.71 kB │ gzip: 1.64 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/cV7PrU8H.js 4.32 kB │ gzip: 1.80 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/DW3krUCT.js 4.66 kB │ gzip: 1.80 kB
1:55:30 PM: [info] .nuxt/dist/client/_nuxt/sJxXUUu8.js 410.15 kB │ gzip: 134.04 kB
1:55:30 PM: [info] ✓ built in 7.31s
1:55:30 PM: [success] Client built in 7323ms
1:55:30 PM: [info] Building server…
1:55:30 PM: [info] vite v5.2.10 building SSR bundle for production…
1:55:30 PM: [info] transforming…
1:55:31 PM: [info] ✓ 218 modules transformed.
1:55:31 PM: [info] rendering chunks…
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/unocss-styles.fPB3eN1Z.mjs 0.08 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/app-styles.DjRnuXSX.mjs 0.08 kB
1:55:31 PM: [info] .nuxt/dist/server/nuxt/error-404-styles.BuFEi3h.mjs 0.08 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles.CU3Y-oSM.mjs 0.08 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/entry-styles.DJiOH6un.mjs 0.21 kB
1:55:31 PM: [info] .nuxt/dist/server/styles.mjs 1.08 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-2.mjs-C-5r91Yz.js 0.13 kB │ map: 0.11 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-3.mjs-d9uFsW4O.js 0.19 kB │ map: 0.11 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/_plugin-vue_export-helper-1tPrXgE0.js 0.25 kB │ map: 0.13 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/price-Mph4h1DL.js 0.91 kB │ map: 0.12 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/link-B0hePaaE.js 1.28 kB │ map: 0.48 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-CuVgoeBU.js 2.10 kB │ map: 0.12 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/button-DfbspHTY.js 2.26 kB │ map: 1.76 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/paragraph-B6jjQGaX.js 2.33 kB │ map: 1.12 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-1.mjs-CyrQeFPa.js 2.45 kB │ map: 0.11 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/index-BaPdjDCE.js 2.52 kB │ map: 1.21 kB
1:55:31 PM: [info] .nuxt/dist/server/nuxt/model-DF_E_oM.js 3.07 kB │ map: 2.86 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/index-CibMUjwu.js 3.73 kB │ map: 0.99 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-9ogl4uvf.js 3.80 kB │ map: 0.12 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/error-500-BTPLYp3t.js 4.24 kB │ map: 4.61 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/error-404-M7scrMlx.js 5.14 kB │ map: 6.44 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/nuxt-link-DbdkRZeq.js 6.97 kB │ map: 15.28 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/default-BvBRIhJK.js 7.76 kB │ map: 6.42 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/index-CxHB9Wjp.js 7.77 kB │ map: 8.01 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/index-Dq1BVO45.js 9.03 kB │ map: 4.40 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/index-DxVyLydf.js 14.78 kB │ map: 8.66 kB
1:55:31 PM: [info] .nuxt/dist/server/_nuxt/cart-DiFDqR3Q.js 17.48 kB │ map: 7.71 kB
1:55:31 PM: [info] .nuxt/dist/server/server.mjs 367.37 kB │ map: 874.20 kB
1:55:31 PM: [info] ✓ built in 1.26s
1:55:31 PM: [success] Server built in 1268ms
1:55:31 PM: [error] ENOENT: no such file or directory, mkdir ‘/opt/build/repo/dist’
1:55:31 PM: [error] ENOENT: no such file or directory, mkdir ‘/opt/build/repo/dist’
1:55:31 PM:
1:55:31 PM: “build.command” failed
1:55:31 PM: ────────────────────────────────────────────────────────────────
1:55:31 PM:
1:55:31 PM: Error message
1:55:31 PM: Command failed with exit code 1: nuxt build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
1:55:31 PM:
1:55:31 PM: Error location
1:55:31 PM: In Build command from Netlify app:
1:55:31 PM: nuxt build
1:55:31 PM:
1:55:31 PM: Resolved config
1:55:31 PM: build:
1:55:31 PM: command: nuxt build
1:55:31 PM: commandOrigin: ui
1:55:31 PM: publish: /opt/build/repo/dist
1:55:31 PM: publishOrigin: ui
1:55:32 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:55:32 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:55:32 PM: Failing build: Failed to build site
1:55:32 PM: Finished processing build request in 35.183s