Hi,
I randomly started to get this error on build…
my site works as normal with no errors on local.
3:51:04 PM: More info: Sass: Breaking Change: Legacy JS API
3:51:13 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)
3:51:13 PM: error Generating SSR bundle failed
3:51:13 PM: Reading from “node:path” is not handled by plugins (Unhandled scheme).
3:51:13 PM: Webpack supports “data:” and “file:” URIs by default.
3:51:13 PM: You may need an additional plugin to handle “node:” URIs.
3:51:13 PM: error Generating SSR bundle failed
3:51:13 PM: Reading from “node:process” is not handled by plugins (Unhandled scheme).
3:51:13 PM: Webpack supports “data:” and “file:” URIs by default.
3:51:13 PM: You may need an additional plugin to handle “node:” URIs.
3:51:13 PM: error Generating SSR bundle failed
3:51:13 PM: Reading from “node:url” is not handled by plugins (Unhandled scheme).
3:51:13 PM: Webpack supports “data:” and “file:” URIs by default.
3:51:13 PM: You may need an additional plugin to handle “node:” URIs.
3:51:13 PM: not finished Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs - 80.716s
3:51:13 PM: not finished Building HTML renderer - 33.590s
3:51:13 PM:
3:51:13 PM: “build.command” failed
3:51:13 PM: ────────────────────────────────────────────────────────────────
3:51:13 PM:
3:51:13 PM: Error message
3:51:13 PM: Command failed with exit code 1: gatsby build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
3:51:13 PM:
3:51:13 PM: Error location
3:51:13 PM: In build.command from netlify.toml:
3:51:13 PM: gatsby build
3:51:13 PM:
3:51:13 PM: Resolved config
3:51:13 PM: build:
3:51:13 PM: command: gatsby build
3:51:13 PM: commandOrigin: config
3:51:13 PM: environment:
3:51:13 PM: - ANALYTICS_TRACKER
3:51:13 PM: - CI
3:51:13 PM: - FACEBOOK_PIXEL
3:51:13 PM: - GTM_TRACKING
3:51:13 PM: - NODE_VERSION
3:51:13 PM: publish: /opt/build/repo/public
3:51:13 PM: publishOrigin: config
3:51:13 PM: headers:
3:51:13 PM: - for: /sitemap.xml/sitemap-0.xml
3:51:13 PM: values:
3:51:13 PM: Content-Type: application/xml
3:51:13 PM: headersOrigin: config
3:51:13 PM: plugins:
3:51:13 PM: - inputs: {}
3:51:13 PM: origin: ui
3:51:13 PM: package: ‘@netlify/plugin-gatsby’
3:51:13 PM: redirects:
3:51:13 PM: - force: true
3:51:13 PM: from: /sitemap.xml
3:51:13 PM: status: 200
3:51:13 PM: to: /sitemap.xml/sitemap-0.xml
3:51:13 PM: redirectsOrigin: config
3:51:13 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:51:13 PM: Failing build: Failed to build site
3:51:14 PM: Finished processing build request in 3m16.862s