Nuxt3 build failing with "TypeError: pattern is too long"

Hi,

My site is comfy-speculoos-c683ef.netlify.app.

It’s a Nuxt3 site with several pages, TypeScript, Tailwind and Google maps component, nothing heavy.

I recently refactored the site into TW and changed the config files to TS. I also changed the Vue components from the Options api to the Composition api.

The build works locally with no issues.

However, deploying to Netlify fails with error “TypeError: pattern is too long”

See logs below. Suspect there is a max file path length? Some of the paths in my node_modules folder are 120+ chars.

Please review logs below and advise.

Cheers
Gus

Bash command to count char len - note max. 122.

$ find . -type f -printf '%P\n' | awk '{ print length, $0 }' | sort -rn | head -n 3
122 node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.d.ts
120 node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.js
116 node_modules/fork-ts-checker-webpack-plugin/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts    
  

logs (note truncated as I exceeded the max length for this ticket)

2:29:44 PM: Netlify Build                                                 
2:29:44 PM: ────────────────────────────────────────────────────────────────
2:29:44 PM: ​
2:29:44 PM: ❯ Version
2:29:44 PM:   @netlify/build 29.53.0
2:29:44 PM: ​
2:29:44 PM: ❯ Flags
2:29:44 PM:   accountId: 62b81ea0ddd9ef1c4d7153ea
2:29:44 PM:   baseRelDir: true
2:29:44 PM:   buildId: 66b75d00b4d640349e245fc2
2:29:44 PM:   deployId: 66b75d00b4d640349e245fc4
2:29:44 PM: ​
2:29:44 PM: ❯ Current directory
2:29:44 PM:   /opt/build/repo
2:29:44 PM: ​
2:29:44 PM: ❯ Config file
2:29:44 PM:   No config file was defined: using default values.
2:29:44 PM: ​
2:29:44 PM: ❯ Context
2:29:44 PM:   production
2:29:44 PM: ​
2:29:44 PM: ❯ Installing plugins
2:29:44 PM:    - @netlify/plugin-lighthouse@6.0.0
2:29:54 PM: ​
2:29:54 PM: ❯ Loading plugins
2:29:54 PM:    - @netlify/plugin-lighthouse@6.0.0 from Netlify app
2:29:56 PM: ​
2:29:56 PM: Build command from Netlify app                                
2:29:56 PM: ────────────────────────────────────────────────────────────────
2:29:56 PM: ​
2:29:56 PM: $ npm run build
2:29:56 PM: > build
2:29:56 PM: > npm run build:css && nuxt build
2:29:56 PM: > build:css
2:29:56 PM: > tailwindcss -i ./styles/tailwind.css -o ./styles/tailwind.output.css
2:29:57 PM: Rebuilding...
2:29:57 PM: Done in 323ms.

[...................]

2:30:08 PM: [info] [nitro] Prerendered 26 routes in 1.808 seconds
2:30:08 PM: [success] [nitro] Generated public dist
2:30:08 PM: [info] [nitro] Building Nuxt Nitro server (preset: `netlify`)
2:30:11 PM: [success] [nitro] Nuxt Nitro server built
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/_/error-500.mjs (4.82 kB) (2.04 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/_/error-500.mjs.map (193 B) (157 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-NZyFb3D5.mjs (8.74 kB) (2.44 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-NZyFb3D5.mjs.map (2.56 kB) (836 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-styles-1.mjs-BQaaTXc2.mjs (297 B) (198 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-styles-1.mjs-BQaaTXc2.mjs.map (206 B) (164 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-styles.8-7mjVWj.mjs (281 B) (195 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-styles.8-7mjVWj.mjs.map (207 B) (163 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-styles.CjNrVcVz.mjs (336 B) (199 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ats-styles.CjNrVcVz.mjs.map (229 B) (174 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-C8W42H2H.mjs (9.12 kB) (2.38 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-C8W42H2H.mjs.map (2.47 kB) (823 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-styles-1.mjs-BzfaW5w3.mjs (322 B) (214 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-styles-1.mjs-BzfaW5w3.mjs.map (224 B) (171 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-styles.Dusa8AWL.mjs (333 B) (207 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-styles.Dusa8AWL.mjs.map (225 B) (168 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-styles.K_j9a_VH.mjs (394 B) (216 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/best-formats-styles.K_j9a_VH.mjs.map (247 B) (182 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/blog-DQo8kIHp.mjs (1.47 kB) (616 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/blog-DQo8kIHp.mjs.map (1.08 kB) (430 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/client.manifest.mjs (20.6 kB) (2.37 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/client.manifest.mjs.map (18.1 kB) (1.43 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-CgAWwG1y.mjs (15.4 kB) (7.4 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-CgAWwG1y.mjs.map (3.42 kB) (767 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-styles-1.mjs-BfxO-d6K.mjs (2.67 kB) (817 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-styles-1.mjs-BfxO-d6K.mjs.map (302 B) (201 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-styles.CBpxMpqy.mjs (662 B) (297 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-styles.CBpxMpqy.mjs.map (252 B) (176 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-styles.TDWk0NnJ.mjs (604 B) (294 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/coaching-styles.TDWk0NnJ.mjs.map (230 B) (166 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/contact-DLOZCmXO.mjs (4.57 kB) (1.4 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/contact-DLOZCmXO.mjs.map (2.98 kB) (842 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ContactSection-styles-1.mjs-C4DQ_5Qq.mjs (1.48 kB) (614 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ContactSection-styles-1.mjs-C4DQ_5Qq.mjs.map (285 B) (196 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ContactSection-styles.DIWDLVVq.mjs (704 B) (307 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ContactSection-styles.DIWDLVVq.mjs.map (264 B) (182 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ContactSection-styles.XTc0faiN.mjs (640 B) (301 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ContactSection-styles.XTc0faiN.mjs.map (242 B) (170 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/CtaButton-DflVpxll.mjs (1.58 kB) (728 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/CtaButton-DflVpxll.mjs.map (1.28 kB) (534 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-B9qenyzR.mjs (9.8 kB) (2.55 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-B9qenyzR.mjs.map (2.67 kB) (862 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-styles-1.mjs-GsNWlVnE.mjs (335 B) (221 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-styles-1.mjs-GsNWlVnE.mjs.map (234 B) (174 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-styles.gD9xLe6y.mjs (359 B) (217 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-styles.gD9xLe6y.mjs.map (235 B) (173 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-styles.M1_t9k0U.mjs (424 B) (221 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-brand-building-styles.M1_t9k0U.mjs.map (257 B) (186 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-CXjowdBV.mjs (6.44 kB) (2.12 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-CXjowdBV.mjs.map (2.61 kB) (759 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-styles-1.mjs-D5H0OTKy.mjs (2.75 kB) (844 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-styles-1.mjs-D5H0OTKy.mjs.map (277 B) (193 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-styles.C8n3cn1a.mjs (671 B) (306 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-styles.C8n3cn1a.mjs.map (256 B) (176 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-styles.DvSgouFG.mjs (612 B) (301 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/cv-writing-styles.DvSgouFG.mjs.map (234 B) (165 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/entry-styles.CCPEPnXt.mjs (369 kB) (58.6 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/entry-styles.CCPEPnXt.mjs.map (842 B) (350 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-DnMJheyc.mjs (4.83 kB) (1.9 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-DnMJheyc.mjs.map (2.32 kB) (779 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-styles-1.mjs-DaBoFDuU.mjs (3.79 kB) (1.22 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-styles-1.mjs-DaBoFDuU.mjs.map (218 B) (168 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-styles.CibK9Qn2.mjs (315 B) (204 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-styles.CibK9Qn2.mjs.map (219 B) (167 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-styles.WpyeoFtc.mjs (373 B) (205 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-404-styles.WpyeoFtc.mjs.map (241 B) (178 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-C9bPTPhK.mjs (3.93 kB) (1.6 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-C9bPTPhK.mjs.map (1.68 kB) (601 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-styles-1.mjs-D_pjx06j.mjs (2.09 kB) (833 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-styles-1.mjs-D_pjx06j.mjs.map (218 B) (168 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-styles.BFuVBFDJ.mjs (373 B) (207 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-styles.BFuVBFDJ.mjs.map (241 B) (180 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-styles.JhxDD0mW.mjs (315 B) (203 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/error-500-styles.JhxDD0mW.mjs.map (219 B) (167 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-Cy6KHdOb.mjs (4.32 kB) (1.65 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-Cy6KHdOb.mjs.map (1.71 kB) (401 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-styles-1.mjs-BRzoAeh4.mjs (788 B) (426 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-styles-1.mjs-BRzoAeh4.mjs.map (275 B) (190 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-styles.CsH8cE5f.mjs (664 B) (302 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-styles.CsH8cE5f.mjs.map (254 B) (177 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-styles.CuflL0HE.mjs (606 B) (296 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/exec-bios-styles.CuflL0HE.mjs.map (232 B) (166 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-NYT_RV48.mjs (5.89 kB) (2.21 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-NYT_RV48.mjs.map (1.57 kB) (525 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-styles-1.mjs-DkB72WjA.mjs (749 B) (343 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-styles-1.mjs-DkB72WjA.mjs.map (208 B) (164 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-styles.BefAFonH.mjs (343 B) (203 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-styles.BefAFonH.mjs.map (231 B) (174 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-styles.Dkl1TPM9.mjs (289 B) (199 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/faqs-styles.Dkl1TPM9.mjs.map (209 B) (165 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/FounderSection-styles-1.mjs-BwRfXXaC.mjs (794 B) (394 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/FounderSection-styles-1.mjs-BwRfXXaC.mjs.map (228 B) (174 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/FounderSection-styles.B9W7mMHY.mjs (413 B) (213 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/FounderSection-styles.B9W7mMHY.mjs.map (251 B) (186 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/FounderSection-styles.DmJyWMzA.mjs (349 B) (206 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/FounderSection-styles.DmJyWMzA.mjs.map (229 B) (172 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-BwsmZRsG.mjs (20 kB) (6.4 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-BwsmZRsG.mjs.map (1.72 kB) (611 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-styles-1.mjs-3f8sDDwx.mjs (1.26 kB) (449 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-styles-1.mjs-3f8sDDwx.mjs.map (208 B) (163 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-styles.BX_EIpgd.mjs (343 B) (202 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-styles.BX_EIpgd.mjs.map (231 B) (175 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-styles.Camt7ZlA.mjs (289 B) (197 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/gdpr-styles.Camt7ZlA.mjs.map (209 B) (161 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/handshake-graphic-dUlzvNHX.mjs (222 B) (184 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/handshake-graphic-dUlzvNHX.mjs.map (253 B) (186 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-C7ffwMM2.mjs (1.66 kB) (1.01 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-C7ffwMM2.mjs.map (1.07 kB) (485 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-styles-1.mjs-BCGhDzNY.mjs (563 B) (338 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-styles-1.mjs-BCGhDzNY.mjs.map (232 B) (174 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-styles.BcJ0dwOl.mjs (361 B) (209 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-styles.BcJ0dwOl.mjs.map (233 B) (171 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-styles.D4APiHnq.mjs (427 B) (215 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/HeadingComponent-styles.D4APiHnq.mjs.map (255 B) (182 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/icon_note-wU9rZygc.mjs (461 B) (254 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/icon_note-wU9rZygc.mjs.map (393 B) (194 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/index-BabADJUJ.mjs (978 B) (455 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/index-BabADJUJ.mjs.map (1.14 kB) (458 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/index-Cgl8hGMA.mjs (32.7 kB) (15.3 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/index-Cgl8hGMA.mjs.map (11.8 kB) (1.35 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/index-DYhVb5xa.mjs (4.27 kB) (1.74 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/index-DYhVb5xa.mjs.map (2.76 kB) (845 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-DjIf9zub.mjs (6.57 kB) (2.03 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-DjIf9zub.mjs.map (5.03 kB) (899 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-styles-1.mjs-8c_UrBiA.mjs (282 B) (208 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-styles-1.mjs-8c_UrBiA.mjs.map (212 B) (165 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-styles.CaHeTUCP.mjs (357 B) (207 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-styles.CaHeTUCP.mjs.map (235 B) (177 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-styles.FHmloZu4.mjs (301 B) (201 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/NavBar-styles.FHmloZu4.mjs.map (213 B) (165 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/nuxt-link-DfuYUFCd.mjs (8.78 kB) (2.38 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/nuxt-link-DfuYUFCd.mjs.map (8.62 kB) (2.02 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-BlBRVepX.mjs (9.06 kB) (2.49 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-BlBRVepX.mjs.map (2.27 kB) (457 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-styles-1.mjs-C2HTAszG.mjs (3.67 kB) (862 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-styles-1.mjs-C2HTAszG.mjs.map (224 B) (171 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-styles.BmLYWhJs.mjs (399 B) (212 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-styles.BmLYWhJs.mjs.map (247 B) (181 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-styles.D6bhqppP.mjs (337 B) (206 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/outplacement-styles.D6bhqppP.mjs.map (225 B) (167 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-C8aqn49z.mjs (4.36 kB) (1.5 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-C8aqn49z.mjs.map (3.91 kB) (1.06 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-styles-1.mjs-jEw5gVOB.mjs (778 B) (405 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-styles-1.mjs-jEw5gVOB.mjs.map (220 B) (171 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-styles.D15XaOSk.mjs (325 B) (204 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-styles.D15XaOSk.mjs.map (221 B) (169 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-styles.DQCE6pEj.mjs (385 B) (211 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/PageFooter-styles.DQCE6pEj.mjs.map (243 B) (178 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/server.mjs (47.9 kB) (11.5 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/server.mjs.map (341 B) (217 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/styles.mjs (5.03 kB) (1.08 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/styles.mjs.map (2.95 kB) (515 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-C6FaYoK-.mjs (15.7 kB) (4.72 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-C6FaYoK-.mjs.map (1.27 kB) (477 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-styles-1.mjs-IIl375W2.mjs (760 B) (346 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-styles-1.mjs-IIl375W2.mjs.map (210 B) (166 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-styles.DUrUGHfj.mjs (350 B) (202 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-styles.DUrUGHfj.mjs.map (233 B) (176 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-styles.DWO5cWVP.mjs (295 B) (200 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/terms-styles.DWO5cWVP.mjs.map (211 B) (165 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ThreeCol-styles-1.mjs-BQeNGXBP.mjs (1.58 kB) (608 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ThreeCol-styles-1.mjs-BQeNGXBP.mjs.map (216 B) (169 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ThreeCol-styles.EvhL-o3Y.mjs (369 B) (211 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ThreeCol-styles.EvhL-o3Y.mjs.map (239 B) (179 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ThreeCol-styles.WhR8n9Qs.mjs (313 B) (204 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/ThreeCol-styles.WhR8n9Qs.mjs.map (217 B) (167 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/WhySection-styles-1.mjs-Hc9m0TJb.mjs (1.22 kB) (485 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/WhySection-styles-1.mjs-Hc9m0TJb.mjs.map (220 B) (172 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/WhySection-styles.BGEE2-gb.mjs (383 B) (212 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/WhySection-styles.BGEE2-gb.mjs.map (243 B) (181 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/WhySection-styles.BZL670xv.mjs (325 B) (204 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/build/WhySection-styles.BZL670xv.mjs.map (221 B) (170 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/routes/renderer.mjs (14.4 kB) (4.61 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/routes/renderer.mjs.map (436 B) (227 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/runtime.mjs (153 kB) (36.9 kB gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/runtime.mjs.map (2.81 kB) (689 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/virtual/_virtual_spa-template.mjs (94 B) (100 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/chunks/virtual/_virtual_spa-template.mjs.map (112 B) (111 B gzip)
2:30:11 PM:   ├─ .netlify/functions-internal/server/package.json (692 B) (345 B gzip)
2:30:11 PM:   └─ .netlify/functions-internal/server/server.mjs (255 B) (183 B gzip)
2:30:11 PM: Σ Total size: 5.51 MB (1.43 MB gzip)
2:30:11 PM: ​
2:30:11 PM: (build.command completed in 15.3s)
2:30:11 PM: ​
2:30:11 PM: Functions bundling                                            
2:30:11 PM: ────────────────────────────────────────────────────────────────
2:30:11 PM: ​
2:30:11 PM: Packaging Functions from .netlify/functions-internal directory:
2:30:11 PM:  - server/server.mjs
2:30:11 PM: ​
2:30:12 PM: ​
2:30:12 PM: Internal error during "Functions bundling"                    
2:30:12 PM: ────────────────────────────────────────────────────────────────
2:30:12 PM: ​
2:30:12 PM:   Error message
2:30:12 PM:   TypeError: pattern is too long
2:30:12 PM: ​
2:30:12 PM:   Error location
2:30:12 PM:   During Functions bundling
2:30:12 PM:       at assertValidPattern (/opt/buildhome/node-deps/node_modules/@vercel/nft/node_modules/minimatch/minimatch.js:279:11)
2:30:12 PM:       at new Minimatch (/opt/buildhome/node-deps/node_modules/@vercel/nft/node_modules/minimatch/minimatch.js:133:3)
2:30:12 PM:       at setopts (/opt/buildhome/node-deps/node_modules/@vercel/nft/node_modules/glob/common.js:116:20)
2:30:12 PM:       at new Glob (/opt/buildhome/node-deps/node_modules/@vercel/nft/node_modules/glob/glob.js:132:3)
2:30:12 PM:       at glob (/opt/buildhome/node-deps/node_modules/@vercel/nft/node_modules/glob/glob.js:72:10)
2:30:12 PM:       at files (/opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:244:85)
2:30:12 PM:       at new Promise (<anonymous>)
2:30:12 PM:       at /opt/buildhome/node-deps/node_modules/@vercel/nft/out/analyze.js:244:33
2:30:12 PM: ​
2:30:12 PM:   Resolved config
2:30:12 PM:   build:
2:30:12 PM:     command: npm run build
2:30:12 PM:     commandOrigin: ui
2:30:12 PM:     environment:
2:30:12 PM:       - GOOGLE_MAPS_API_KEY
2:30:12 PM:       - NETLIFY_EMAILS_DIRECTORY
2:30:12 PM:       - NETLIFY_EMAILS_SECRET
2:30:12 PM:     publish: /opt/build/repo/dist
2:30:12 PM:     publishOrigin: ui
2:30:12 PM:   headers:
2:30:13 PM:     - for: /_nuxt/builds/meta/*
      values:
        cache-control: public, max-age=31536000, immutable
    - for: /_nuxt/builds/*
      values:
        cache-control: public, max-age=1, immutable
    - for: /_nuxt/*
      values:
        cache-control: public, max-age=31536000, immutable
  plugins:
    - inputs: {}
      origin: ui
      package: '@netlify/plugin-lighthouse'
  redirects:
    - from: /__nuxt_error
      status: 200
      to: /.netlify/functions/server
    - from: /*
      status: 200
      to: /.netlify/functions/server
2:30:13 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
2:30:13 PM: Failing build: Failed to build site
2:30:13 PM: Finished processing build request in 57.053s
2:30:13 PM: Failed during stage 'building site': Build script returned non-zero exit code: 4 (https://ntl.fyi/exit-code-4)

Thanks for sharing that post. I read that already, but unfortunately I don’t have this option in my nuxt config:

inlineSSRStyles: false

What is server.mjs ? I don’t have that file in my project

You can see it is the server.mjs file that is causing the issue

2:30:11 PM: Packaging Functions from .netlify/functions-internal directory:
2:30:11 PM:  - server/server.mjs
2:30:11 PM: ​
2:30:12 PM: ​
2:30:12 PM: Internal error during "Functions bundling" 

I believe that’s exactly what you need to add.

I added that but TypeScript doesn’t like it:

Object literal may only specify known properties, and 'inlineSSRStyles' does not exist in type '{ asyncEntry?: boolean | undefined; externalVue?: boolean | undefined; treeshakeClientOnly?: boolean | undefined; emitRouteChunkError?: false | "manual" | "automatic" | undefined; ... 30 more ...; navigationRepaint?: boolean | undefined; }'.ts(2353)
index.d.ts(1896, 2): The expected type comes from property 'experimental' which is declared here on type 'InputConfig<NuxtConfig, ConfigLayerMeta>'

It’s definitely an expected option: nuxt/packages/schema/src/config/experimental.ts at main · nuxt/nuxt (github.com) as well as: RollupError in vite 4 (nuxt 3.2.3+) and vuetify · Issue #19850 · nuxt/nuxt · GitHub (and more such issues mention this property exists).

If TypeScript doesn’t like it, you can add @ts-ignore

1 Like