PLEASE help!
My site is failing since a few days ago. I have reverted all my code to the state it was in when it last deployed, and even that does not do the trick. I keep getting this webpack build error, despite not changing anything that touches webpack (until now, since I am currently trying to debug it).
To the Netlify crew - try to redeploy an old build that previously deployed, you will see it fails.
- site name: diffusion-kit
Relevant portion of the build log (nuxt generate)
3:41:10 PM: > renderai-ui@1.0.0 generate 3:41:10 PM: > nuxt generate 3:41:11 PM: [warn] [pwa] [icon] Icon not found in /opt/build/repo/ui/static/icon.png 3:41:11 PM: [info] [@nuxt/content] Parsed 1 files in 0.3 seconds 3:41:12 PM: [success] [nuxt:sentry] Sentry reporting is enabled (client side: enabled, server side: enabled) 3:41:12 PM: [info] Production build 3:41:12 PM: [info] Bundling for server and client side 3:41:12 PM: [info] Target: static 3:41:12 PM: [info] Using components loader to optimize imports 3:41:12 PM: [info] Discovered Components: node_modules/.cache/nuxt/components/readme.md 3:41:12 PM: [success] Builder initialized 3:41:12 PM: [success] Nuxt files generated 3:41:13 PM: [fatal] Cannot read properties of undefined (reading 'get') 3:41:13 PM: at /opt/build/repo/node_modules/webpack/lib/DefinePlugin.js:354:38 3:41:13 PM: at SyncHook.eval [as call] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:13:1) 3:41:13 PM: at SyncHook.lazyCompileHook (node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20) 3:41:13 PM: at Compiler.newCompilation (node_modules/webpack/lib/Compiler.js:631:26) 3:41:13 PM: at node_modules/webpack/lib/Compiler.js:667:29 3:41:13 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) 3:41:13 PM: at AsyncSeriesHook.lazyCompileHook (node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20) 3:41:13 PM: at Compiler.compile (node_modules/webpack/lib/Compiler.js:662:28) 3:41:13 PM: at node_modules/webpack/lib/Compiler.js:321:11 3:41:13 PM: at Compiler.readRecords (node_modules/webpack/lib/Compiler.js:529:11) 3:41:13 PM: at node_modules/webpack/lib/Compiler.js:318:10 3:41:13 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1) 3:41:13 PM: at AsyncSeriesHook.lazyCompileHook (node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20) 3:41:13 PM: at node_modules/webpack/lib/Compiler.js:315:19 3:41:13 PM: at AsyncSeriesHook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1) 3:41:13 PM: at AsyncSeriesHook.lazyCompileHook (node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20) 3:41:13 PM: at Compiler.run (node_modules/webpack/lib/Compiler.js:312:24) 3:41:13 PM: at node_modules/pify/index.js:33:11 3:41:13 PM: at new Promise (<anonymous>) 3:41:13 PM: at Compiler.<anonymous> (node_modules/pify/index.js:6:9) 3:41:13 PM: at Object.apply (node_modules/pify/index.js:85:19) 3:41:13 PM: at WebpackBundler.webpackCompile (node_modules/@nuxt/webpack/dist/webpack.js:1866:34) 3:41:13 PM: at async WebpackBundler.build (node_modules/@nuxt/webpack/dist/webpack.js:1833:5) 3:41:13 PM: at async Builder.build (node_modules/@nuxt/builder/dist/builder.js:249:5) 3:41:13 PM: at async ensureBuild (node_modules/@nuxt/cli/dist/cli-generate.js:117:3) 3:41:13 PM: at async Object.run (node_modules/@nuxt/cli/dist/cli-generate.js:234:7) 3:41:13 PM: at async NuxtCommand.run (node_modules/@nuxt/cli/dist/cli-index.js:356:7) 3:41:13 PM: 3:41:13 PM: ╭────────────────────────────────────────────────────────────────────╮ 3:41:13 PM: │ │ 3:41:13 PM: │ ✖ Nuxt Fatal Error │ 3:41:13 PM: │ │ 3:41:13 PM: │ TypeError: Cannot read properties of undefined (reading 'get') │ 3:41:13 PM: │ │ 3:41:13 PM: ╰────────────────────────────────────────────────────────────────────╯ 3:41:13 PM: 3:41:13 PM: 3:41:13 PM: netlify-plugin-bundle-env (onEnd event) 3:41:13 PM: ──────────────────────────────────────────────────────────────── I would appreciate an actual explanation and solution to this but in lieu of that I would take any kind of solution that allows me to deploy again – like suppressing webpack. Very unclear here what is happening and I have lost nearly a week to this, super frustrated at this point.