Nuxt JS Static Sites all failing to build on npm run generate

I got this particular site working

I switched Node to use Version 12 in my toml file

[build.environment]
NODE_VERSION = “12”

This is weird because all of my Nuxt Static sites were working with v10 and no major changes or addons made and they are breaking. This works for now.

Got the idea because another thread they switched to a newer version of Node and it built.

No idea why, but if you’re struggling with Nuxt JS builds failing on Netlify and they are working locally, try switching your node versions or watching for packages incompatible with your node versions (wasn’t my case but I did see warnings of some packages not working with Node v14)