TypeError: pattern is too long

I am having an issue with building my Nuxt 3 website:
I have been able to successfully build multiple times in the past, but now I get the following:

7:04:12 PM: Internal error during Functions bundling                    ​
7:04:12 PM:   Error message
7:04:12 PM:   TypeError: pattern is too long
7:04:12 PM: ​
7:04:12 PM:   Error location
7:04:12 PM:   During Functions bundling
7:04:12 PM:       at assertValidPattern (/opt/buildhome/node-deps/node_modules/minimatch/minimatch.js:279:11)
7:04:12 PM:       at new Minimatch (/opt/buildhome/node-deps/node_modules/minimatch/minimatch.js:133:3)
7:04:12 PM:       at setopts (/opt/buildhome/node-deps/node_modules/glob/common.js:116:20)
7:04:12 PM:       at new Glob (/opt/buildhome/node-deps/node_modules/glob/glob.js:132:3)
7:04:12 PM:       at glob (/opt/buildhome/node-deps/node_modules/glob/glob.js:72:10)
7:04:12 PM:       at files (/opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:230:86)
7:04:12 PM:       at new Promise (<anonymous>)
7:04:12 PM:       at /opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:230:34
7:04:12 PM: ​
7:04:12 PM:   Resolved config
7:04:12 PM:   build:
7:04:12 PM:     command: npm run build
7:04:12 PM:     commandOrigin: ui
7:04:12 PM:     environment:
7:04:12 PM:       - FIREBASE_API_KEY
7:04:12 PM:       - FIREBASE_APP_ID
7:04:12 PM:       - FIREBASE_AUTH_DOMAIN
7:04:12 PM:       - FIREBASE_MEASUREMENT_ID
7:04:12 PM:       - FIREBASE_MESSAGING_SENDER_ID
7:04:12 PM:       - FIREBASE_PROJECT_ID
7:04:12 PM:       - FIREBASE_STORAGE_BUCKET
7:04:12 PM:     publish: /opt/build/repo/dist
7:04:12 PM:     publishOrigin: ui
7:04:12 PM:   headers:
7:04:13 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
7:04:13 PM: Failing build: Failed to build site

7:04:13 PM: Failed during stage 'building site': Build script returned non-zero exit code: 4 (https://ntl.fyi/exit-code-4)
7:03:09 PM: build-image version: 20e1f1f500e4cbad9ea8a99bd40807bef3093551 (focal)
7:03:09 PM: buildbot version: 4ee76d98466e2dfc33516fcb7e63e2a20615fbc6
7:03:09 PM: Fetching cached dependencies
7:03:10 PM: Starting to download cache of 227.2MB
7:03:12 PM: Finished downloading cache in 2.672s
7:03:12 PM: Starting to extract cache
7:03:14 PM: Finished extracting cache in 2.079s
7:03:14 PM: Finished fetching cache in 4.835s
7:03:14 PM: Starting to prepare the repo for build
7:03:15 PM: Preparing Git Reference refs/heads/main
7:03:17 PM: Starting to install dependencies
7:03:17 PM: Python version set to 3.8
7:03:17 PM: Attempting Ruby version 2.7.2, read from environment
7:03:17 PM: Using Ruby version 2.7.2
7:03:18 PM: Started restoring cached go cache
7:03:18 PM: Finished restoring cached go cache
7:03:19 PM: Installing Go version 1.19.12 (requested 1.19.x)
7:03:24 PM: go version go1.19.12 linux/amd64
7:03:24 PM: Using PHP version 8.0
7:03:25 PM: Started restoring cached Node.js version
7:03:26 PM: Finished restoring cached Node.js version
7:03:27 PM: v18.17.0 is already installed.
7:03:27 PM: Now using node v18.17.0 (npm v9.6.7)
7:03:27 PM: Enabling Node.js Corepack
7:03:27 PM: Started restoring cached build plugins
7:03:27 PM: Finished restoring cached build plugins
7:03:27 PM: Started restoring cached corepack dependencies
7:03:27 PM: Finished restoring cached corepack dependencies
7:03:27 PM: No npm workspaces detected
7:03:27 PM: Started restoring cached node modules
7:03:27 PM: Finished restoring cached node modules
7:03:27 PM: Installing npm packages using npm version 9.6.7
7:03:34 PM: > postinstall
7:03:34 PM: > nuxt prepare
7:03:34 PM: [log] Nuxi 3.6.2
7:03:36 PM: [success] Types generated in .nuxt
7:03:36 PM: added 29 packages, changed 1 package, and audited 1848 packages in 8s
7:03:36 PM: 169 packages are looking for funding
7:03:36 PM:   run `npm fund` for details
7:03:36 PM: 6 vulnerabilities (1 moderate, 5 high)
7:03:36 PM: To address issues that do not require attention, run:
7:03:36 PM:   npm audit fix
7:03:36 PM: To address all issues (including breaking changes), run:
7:03:36 PM:   npm audit fix --force
7:03:36 PM: Run `npm audit` for details.
7:03:36 PM: npm packages installed
7:03:36 PM: Install dependencies script success
7:03:36 PM: Starting build script
7:03:37 PM: Detected 1 framework(s)
7:03:37 PM: nuxt at version 3.6.2
7:03:37 PM: Section completed: initializing
7:03:38 PM: ​
7:03:38 PM: Netlify Build                                                 
7:03:38 PM: ────────────────────────────────────────────────────────────────
7:03:38 PM: ​
7:03:38 PM: ❯ Version
7:03:38 PM:   @netlify/build 29.17.4
7:03:38 PM: ​
7:03:38 PM: ❯ Flags
7:03:38 PM:   baseRelDir: true
7:03:38 PM:   buildId: 64cae0ac1bf28500084c7367
7:03:38 PM:   deployId: 64cae0ac1bf28500084c7369
7:03:38 PM: ​
7:03:38 PM: ❯ Current directory
7:03:38 PM:   /opt/build/repo
7:03:38 PM: ​
7:03:38 PM: ❯ Config file
7:03:38 PM:   No config file was defined: using default values.
7:03:38 PM: ​
7:03:38 PM: ❯ Context
7:03:38 PM:   production
7:03:38 PM: ​
7:03:38 PM: Build command from Netlify app                                
7:03:38 PM: ────────────────────────────────────────────────────────────────
7:03:38 PM: ​
7:03:38 PM: $ npm run build
7:03:39 PM: > build
7:03:39 PM: > nuxt build
7:03:39 PM: [log] Nuxi 3.6.2
7:03:39 PM: [log] Nuxt 3.6.2 with Nitro 2.5.2
7:03:40 PM: [info] Building client...
7:03:41 PM: [info] vite v4.3.9 building for production...
7:03:41 PM: [info] transforming...
7:03:50 PM: [info] βœ“ 589 modules transformed.
7:03:50 PM: [info] rendering chunks...
7:03:51 PM: [info] computing gzip size...
7:03:51 PM: [info] .nuxt/dist/client/manifest.json                                         5.03 kB β”‚ gzip:   0.76 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/materialdesignicons-webfont.c1c004a9.woff2    396.73 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/materialdesignicons-webfont.80bb28b3.woff     576.75 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/materialdesignicons-webfont.a58ecb54.ttf    1,279.99 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/materialdesignicons-webfont.67d24abe.eot    1,280.21 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/dtf.fa8346d6.css                                0.03 kB β”‚ gzip:   0.05 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/MyAccount.14d5bb3c.css                          0.05 kB β”‚ gzip:   0.07 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/login.0771985c.css                              0.09 kB β”‚ gzip:   0.09 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/orders.38d7b960.css                             0.09 kB β”‚ gzip:   0.10 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/default.fa3e3999.css                            0.09 kB β”‚ gzip:   0.11 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/error-500.aa16ed4d.css                          1.95 kB β”‚ gzip:   0.74 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/error-404.23f2309d.css                          3.63 kB β”‚ gzip:   1.12 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/entry.8f4e357a.css                            477.33 kB β”‚ gzip:  73.27 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/index.9c369f25.js                               0.26 kB β”‚ gzip:   0.22 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/MyAccount.3c55fa9a.js                           1.17 kB β”‚ gzip:   0.59 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/dtf.195389da.js                                 1.41 kB β”‚ gzip:   0.70 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/error-500.c4602296.js                           1.88 kB β”‚ gzip:   0.99 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/default.6f56564e.js                             2.17 kB β”‚ gzip:   0.89 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/error-404.56e32e4f.js                           2.26 kB β”‚ gzip:   1.16 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/login.b898191a.js                               2.93 kB β”‚ gzip:   1.22 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/nuxt-link.3a670423.js                           4.35 kB β”‚ gzip:   1.87 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/orders.a98bcd35.js                             11.10 kB β”‚ gzip:   2.98 kB
7:03:51 PM: [info] .nuxt/dist/client/_nuxt/entry.9d062a67.js                           1,856.99 kB β”‚ gzip: 571.55 kB
7:03:51 PM: [warn] 
7:03:51 PM: (!) Some chunks are larger than 500 kBs after minification. Consider:
7:03:51 PM: - Using dynamic import() to code-split the application
7:03:51 PM: - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
7:03:51 PM: - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
7:03:51 PM: [info] βœ“ built in 10.44s
7:03:51 PM: [success] Client built in 10446ms
7:03:51 PM: [info] Building server...
7:03:51 PM: [info] vite v4.3.9 building SSR bundle for production...
7:03:51 PM: [info] transforming...
7:04:02 PM: [info] βœ“ 614 modules transformed.
7:04:02 PM: [info] rendering chunks...
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/dtf-styles.498662ff.mjs               0.14 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/login-styles.9ad23afd.mjs             0.15 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/orders-styles.8ab2a643.mjs            0.15 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/default-styles.6855626c.mjs           0.15 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/MyAccount-styles.7f0408e6.mjs         0.15 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/error-404-styles.cf00f4cc.mjs         0.15 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles.a001b7ed.mjs         0.15 kB
7:04:02 PM: [info] .nuxt/dist/server/styles.mjs                                  0.94 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles.1acd9811.mjs             5.56 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-65.mjs-eeb1c743.js       0.16 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/dtf-styles-1.mjs-e2d50bef.js          0.19 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-19.mjs-09065b50.js       0.19 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-69.mjs-c83d95f6.js       0.21 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/index-e12b288f.js                     0.22 kB β”‚ map:     5.28 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-61.mjs-fab5f85d.js       0.22 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-80.mjs-6a9fa727.js       0.22 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-11.mjs-4d6a3597.js       0.23 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-64.mjs-1f998939.js       0.23 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-63.mjs-5acc73ca.js       0.24 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-35.mjs-7d1fdf3e.js       0.25 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/login-styles-1.mjs-7c3fba0c.js        0.26 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-37.mjs-c46c252f.js       0.26 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/MyAccount-styles-1.mjs-e4e0cfa5.js    0.26 kB β”‚ map:     0.12 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/default-styles-1.mjs-e5f48f81.js      0.27 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-45.mjs-e1eabb89.js       0.27 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-22.mjs-5d7bd809.js       0.29 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/orders-styles-1.mjs-1e98370c.js       0.30 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-70.mjs-ba75ef34.js       0.32 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-68.mjs-75b5e3f0.js       0.33 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-58.mjs-182585dc.js       0.34 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-21.mjs-aa9438a3.js       0.34 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-24.mjs-5bc82fb4.js       0.41 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-5.mjs-5beebf85.js        0.41 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-27.mjs-715d7069.js       0.43 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-62.mjs-5ebb77fe.js       0.47 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-77.mjs-42dc72b8.js       0.51 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-9.mjs-23b15612.js        0.51 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-8.mjs-afc0b158.js        0.55 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-66.mjs-d85ddf19.js       0.56 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-6.mjs-0e2d7f44.js        0.59 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-31.mjs-341f1ba6.js       0.59 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-47.mjs-a8cf468e.js       0.60 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-30.mjs-1925545f.js       0.64 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-82.mjs-0165bd98.js       0.68 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-16.mjs-0ef53e1a.js       0.72 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-54.mjs-f5d426d4.js       0.77 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-46.mjs-ea3dca5a.js       0.80 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-72.mjs-a5930409.js       0.83 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-48.mjs-dea18daa.js       0.83 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-53.mjs-a6a53180.js       0.88 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-59.mjs-4b19308a.js       0.89 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-13.mjs-f69ad375.js       0.95 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-32.mjs-51eb3778.js       0.98 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-41.mjs-bc9b57e7.js       1.00 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-75.mjs-4aa0e472.js       1.05 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-71.mjs-7aa7f845.js       1.06 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-50.mjs-18263db5.js       1.07 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-43.mjs-2b6f2cc6.js       1.07 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/index-0af4cc50.js                     1.15 kB β”‚ map:     0.38 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/island-renderer-eca952ae.js           1.24 kB β”‚ map:     1.39 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-38.mjs-5325dc6f.js       1.31 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-79.mjs-7c5861eb.js       1.33 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-33.mjs-84a350e6.js       1.40 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-12.mjs-d6c87111.js       1.44 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-76.mjs-28beda58.js       1.47 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-40.mjs-e74105ce.js       1.68 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-56.mjs-5267caa8.js       1.86 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-44.mjs-029c009e.js       1.97 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-74.mjs-b59f6d95.js       2.02 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-14.mjs-20cc55f4.js       2.03 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-55.mjs-2a8749ea.js       2.13 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-67.mjs-8f4a4707.js       2.14 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-0a86f27a.js    2.17 kB β”‚ map:     0.12 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-28.mjs-da79bf71.js       2.21 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-34.mjs-ed11a8d7.js       2.24 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-18.mjs-ca4023f7.js       2.26 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-26.mjs-fdb61c42.js       2.29 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-20.mjs-c719481f.js       2.31 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-49.mjs-44c7305f.js       2.55 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-73.mjs-40a959d5.js       2.67 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-7.mjs-16552b7b.js        2.80 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-23.mjs-8b5871a0.js       3.09 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/error-500-dec964cf.js                 3.23 kB β”‚ map:     3.79 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/useAuthStore-fceb35ac.js              3.33 kB β”‚ map:     5.56 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-39.mjs-af775980.js       3.84 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-6ef6e240.js    3.86 kB β”‚ map:     0.12 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-51.mjs-8577bb1f.js       3.87 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/error-404-2e2461ee.js                 4.13 kB β”‚ map:     5.83 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-17.mjs-d1652a8c.js       4.28 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-15.mjs-06bc79cc.js       4.31 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-78.mjs-f6e07d1b.js       4.35 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-52.mjs-54ccaa73.js       5.61 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/nuxt-link-744fccd2.js                 5.99 kB β”‚ map:    13.21 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-57.mjs-a3692e4d.js       6.26 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-42.mjs-46cd83b1.js       6.44 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/MyAccount-5f461817.js                 6.55 kB β”‚ map:     1.19 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/dtf-3a7395be.js                       7.11 kB β”‚ map:     1.72 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/default-3a2fd9d2.js                   7.26 kB β”‚ map:     3.04 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-2.mjs-e9d379b3.js        7.45 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-10.mjs-c3a6acaa.js       9.11 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-29.mjs-ff2c07b2.js       9.44 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-3.mjs-7e6fa274.js        9.63 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-25.mjs-2bf15a61.js       9.84 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-81.mjs-67a04942.js      15.42 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-36.mjs-01c93929.js      16.05 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/login-8d9a7cbd.js                    16.89 kB β”‚ map:     5.13 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-60.mjs-0721711c.js      18.48 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/orders-8c13a727.js                  152.69 kB β”‚ map:    24.02 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-1.mjs-bc6843c8.js      229.43 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-4.mjs-38703d33.js      338.70 kB β”‚ map:     0.11 kB
7:04:02 PM: [info] .nuxt/dist/server/server.mjs                                665.59 kB β”‚ map: 1,373.43 kB
7:04:02 PM: [info] βœ“ built in 11.52s
7:04:02 PM: [success] Server built in 11530ms
7:04:02 PM: [success] [nitro] Generated public dist
7:04:03 PM: [nitro] Nitro now uses `isr` option to configure ISR behavior on Netlify. Backwards-compatible support for `static` and `swr` support with Builder Functions will be removed in the future versions. Set `future.nativeSWR: true` nitro config disable this warning.
7:04:03 PM: [info] [nitro] Building Nitro Server (preset: `netlify`)
7:04:08 PM: [success] [nitro] Nitro server built
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/default-3a2fd9d2.mjs (7.28 kB) (1.61 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/default-3a2fd9d2.mjs.map (5.96 kB) (1.13 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/default-styles.6855626c.mjs (361 B) (232 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/default-styles.6855626c.mjs.map (341 B) (225 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/dtf-3a7395be.mjs (7.17 kB) (1.54 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/dtf-3a7395be.mjs.map (5.71 kB) (1.21 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/dtf-styles.498662ff.mjs (268 B) (178 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/dtf-styles.498662ff.mjs.map (329 B) (219 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/entry-styles.1acd9811.mjs (764 kB) (106 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/entry-styles.1acd9811.mjs.map (10.6 kB) (1.96 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-404-2e2461ee.mjs (4.14 kB) (1.75 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-404-2e2461ee.mjs.map (2.33 kB) (792 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-404-styles.cf00f4cc.mjs (3.98 kB) (1.25 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-404-styles.cf00f4cc.mjs.map (348 B) (226 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-500-dec964cf.mjs (3.24 kB) (1.44 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-500-dec964cf.mjs.map (1.69 kB) (610 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-500-styles.a001b7ed.mjs (2.28 kB) (869 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/error-500-styles.a001b7ed.mjs.map (348 B) (225 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/index-0af4cc50.mjs (1.25 kB) (616 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/index-0af4cc50.mjs.map (850 B) (402 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/island-renderer-eca952ae.mjs (1.34 kB) (630 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/island-renderer-eca952ae.mjs.map (910 B) (432 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/login-8d9a7cbd.mjs (17 kB) (2.62 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/login-8d9a7cbd.mjs.map (13.6 kB) (2.27 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/login-styles.9ad23afd.mjs (344 B) (214 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/login-styles.9ad23afd.mjs.map (335 B) (223 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/MyAccount-5f461817.mjs (6.58 kB) (1.43 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/MyAccount-5f461817.mjs.map (4.94 kB) (1.17 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/MyAccount-styles.7f0408e6.mjs (375 B) (206 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/MyAccount-styles.7f0408e6.mjs.map (347 B) (223 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/nuxt-link-744fccd2.mjs (6.04 kB) (1.69 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/nuxt-link-744fccd2.mjs.map (5.88 kB) (1.47 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/orders-8c13a727.mjs (153 kB) (8.9 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/orders-8c13a727.mjs.map (94.8 kB) (8.26 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/orders-styles.8ab2a643.mjs (401 B) (234 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/orders-styles.8ab2a643.mjs.map (338 B) (223 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/useAuthStore-fceb35ac.mjs (3.26 kB) (1.04 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/_nuxt/useAuthStore-fceb35ac.mjs.map (3.25 kB) (916 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/client.manifest.mjs (6.99 kB) (979 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/client.manifest.mjs.map (5.36 kB) (770 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/server.mjs (636 kB) (131 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/server.mjs.map (786 kB) (98.5 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/styles.mjs (1.01 kB) (371 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/app/styles.mjs.map (781 B) (282 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/error-500.mjs (4.26 kB) (1.82 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/error-500.mjs.map (1.06 kB) (392 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/handlers/renderer.mjs (10.4 kB) (3.25 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/handlers/renderer.mjs.map (11.9 kB) (2.37 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/nitro/netlify.mjs (20.6 kB) (6.07 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/nitro/netlify.mjs.map (23.6 kB) (4.15 kB gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/rollup/_virtual_head-static.mjs (301 B) (217 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/rollup/_virtual_head-static.mjs.map (111 B) (112 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/rollup/_virtual_spa-template.mjs (697 B) (449 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/chunks/rollup/_virtual_spa-template.mjs.map (112 B) (112 B gzip)
7:04:09 PM:   β”œβ”€ .netlify/functions-internal/server/package.json (2.43 kB) (834 B gzip)
7:04:09 PM:   └─ .netlify/functions-internal/server/server.mjs (409 B) (246 B gzip)
7:04:09 PM: Ξ£ Total size: 10.8 MB (2.49 MB gzip)
7:04:09 PM: ​
7:04:09 PM: (build.command completed in 30.3s)
7:04:09 PM: ​
7:04:09 PM: Functions bundling                                            
7:04:09 PM: ────────────────────────────────────────────────────────────────
7:04:09 PM: ​
7:04:09 PM: Packaging Functions from .netlify/functions-internal directory:
7:04:09 PM:  - server/server.mjs
7:04:09 PM: ​
7:04:11 PM: Unhandled rejection…
7:04:11 PM: TypeError: pattern is too long
7:04:11 PM:     at assertValidPattern (/opt/buildhome/node-deps/node_modules/minimatch/minimatch.js:279:11)
7:04:11 PM:     at new Minimatch (/opt/buildhome/node-deps/node_modules/minimatch/minimatch.js:133:3)
7:04:11 PM:     at setopts (/opt/buildhome/node-deps/node_modules/glob/common.js:116:20)
7:04:11 PM:     at new Glob (/opt/buildhome/node-deps/node_modules/glob/glob.js:132:3)
7:04:11 PM:     at glob (/opt/buildhome/node-deps/node_modules/glob/glob.js:72:10)
7:04:11 PM:     at files (/opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:230:86)
7:04:11 PM:     at new Promise (<anonymous>)
7:04:11 PM:     at /opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:230:34
7:04:12 PM: (node:3869) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 5)
7:04:12 PM: (Use `node --trace-warnings ...` to show where the warning was created)
7:04:12 PM: ​
7:04:12 PM: Internal error during Functions bundling                    
7:04:12 PM: ────────────────────────────────────────────────────────────────
7:04:12 PM: ​
7:04:12 PM:   Error message
7:04:12 PM:   TypeError: pattern is too long
7:04:12 PM: ​
7:04:12 PM:   Error location
7:04:12 PM:   During Functions bundling
7:04:12 PM:       at assertValidPattern (/opt/buildhome/node-deps/node_modules/minimatch/minimatch.js:279:11)
7:04:12 PM:       at new Minimatch (/opt/buildhome/node-deps/node_modules/minimatch/minimatch.js:133:3)
7:04:12 PM:       at setopts (/opt/buildhome/node-deps/node_modules/glob/common.js:116:20)
7:04:12 PM:       at new Glob (/opt/buildhome/node-deps/node_modules/glob/glob.js:132:3)
7:04:12 PM:       at glob (/opt/buildhome/node-deps/node_modules/glob/glob.js:72:10)
7:04:12 PM:       at files (/opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:230:86)
7:04:12 PM:       at new Promise (<anonymous>)
7:04:12 PM:       at /opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:230:34
7:04:12 PM: ​
7:04:12 PM:   Resolved config
7:04:12 PM:   build:
7:04:12 PM:     command: npm run build
7:04:12 PM:     commandOrigin: ui
7:04:12 PM:     environment:
7:04:12 PM:       - FIREBASE_API_KEY
7:04:12 PM:       - FIREBASE_APP_ID
7:04:12 PM:       - FIREBASE_AUTH_DOMAIN
7:04:12 PM:       - FIREBASE_MEASUREMENT_ID
7:04:12 PM:       - FIREBASE_MESSAGING_SENDER_ID
7:04:12 PM:       - FIREBASE_PROJECT_ID
7:04:12 PM:       - FIREBASE_STORAGE_BUCKET
7:04:12 PM:     publish: /opt/build/repo/dist
7:04:12 PM:     publishOrigin: ui
7:04:12 PM:   headers:
7:04:13 PM:     - for: /_nuxt/*
      values:
        cache-control: public, max-age=31536000, immutable
  redirects:
    - from: /__nuxt_error
      status: 200
      to: /.netlify/functions/server
    - from: /*
      status: 200
      to: /.netlify/functions/server
Caching artifacts
7:04:13 PM: Started saving node modules
7:04:13 PM: Finished saving node modules
7:04:13 PM: Started saving build plugins
7:04:13 PM: Finished saving build plugins
7:04:13 PM: Started saving corepack cache
7:04:13 PM: Finished saving corepack cache
7:04:13 PM: Started saving pip cache
7:04:13 PM: Finished saving pip cache
7:04:13 PM: Started saving emacs cask dependencies
7:04:13 PM: Finished saving emacs cask dependencies
7:04:13 PM: Started saving maven dependencies
7:04:13 PM: Finished saving maven dependencies
7:04:13 PM: Started saving boot dependencies
7:04:13 PM: Finished saving boot dependencies
7:04:13 PM: Started saving rust rustup cache
7:04:13 PM: Finished saving rust rustup cache
7:04:13 PM: Started saving go dependencies
7:04:13 PM: Finished saving go dependencies
7:04:13 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
7:04:13 PM: Failing build: Failed to build site
7:04:14 PM: Finished processing build request in 1m4.367s

Hi @WesleyWaters,

This is being handled in the helpdesk.

Hello,
I am having the same issue. Previous build succeeded, latest build fails with the same β€œTypeError: pattern is too long”, and the call stack is the same as the original post.

Any insight?

Of the 2 people (excluding @jrfiore ) that have reported this, no one has shared a reproduction repo yet. Thus, there has not been any progress on this as we’re unable to check the issue.

May it is useful for some folks.
I had the same issue while using nuxt with ssr-rendered pages. In my nuxt.config.ts i disabled the following and the issue was gone.

export default defineNuxtConfig({
  ...
  experimental: {
    /**
     * see: https://v3.nuxtjs.org/api/configuration/nuxt.config#inlinessrstyles
     */
    inlineSSRStyles: false
  },
}),
1 Like

Hi @maik_helsing

Thanks for sharing your solution with the community. This will help other folks who stumble upon this thread. :+1:t6: :

thank you, it works for me