The build of a website has randomly stopped working — it builds fine on my local machine. It’s a gatsby site being deployed from GitHub.
https://thirsty-newton-5e1c23.netlify.com/
10:28:51 AM: success onPostBootstrap - 0.146s
10:28:51 AM: ⠀
10:28:51 AM: info bootstrap finished - 9.453 s
10:28:51 AM: ⠀
10:29:17 AM: failed Building production JavaScript and CSS bundles - 24.941s
10:29:17 AM: error Generating JavaScript bundles failed
10:29:17 AM: Can't resolve 'gatsby-link' in '/opt/build/repo/.cache'
10:29:17 AM: error Generating JavaScript bundles failed
10:29:17 AM: Can't resolve 'gatsby-link' in '/opt/build/repo/.cache'
10:29:17 AM: error Generating JavaScript bundles failed
10:29:17 AM: Can't resolve 'gatsby-react-router-scroll' in '/opt/build/repo/.cache'
10:29:17 AM: not finished run queries - 25.544s
10:29:17 AM: not finished Generating image thumbnails - 25.406s
10:29:17 AM: Skipping functions preparation step: no functions directory set
10:29:17 AM: Caching artifacts
10:29:17 AM: Started saving node modules
10:29:17 AM: Finished saving node modules
10:29:17 AM: Started saving yarn cache
10:29:17 AM: Finished saving yarn cache
10:29:17 AM: Started saving pip cache
10:29:17 AM: Finished saving pip cache
10:29:17 AM: Started saving emacs cask dependencies
10:29:17 AM: Finished saving emacs cask dependencies
10:29:17 AM: Started saving maven dependencies
10:29:18 AM: Finished saving maven dependencies
10:29:18 AM: Started saving boot dependencies
10:29:18 AM: Finished saving boot dependencies
10:29:18 AM: Started saving go dependencies
10:29:18 AM: Finished saving go dependencies
10:29:18 AM: Error running command: Build script returned non-zero exit code: 1
10:29:18 AM: Failing build: Failed to build site
10:29:18 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
10:29:18 AM: Finished processing build request in 2m18.388745534s
Does anyone have any ideas?
Edit: Before I cleared the cache the error was:
8:13:33 PM: warning gatsby > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
8:13:34 PM: warning gatsby > gatsby-cli > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
8:13:34 PM: error Couldn't find any versions for "@typescript-eslint/experimental-utils" that matches "2.19.2"
8:13:34 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
8:13:35 PM: Error: Couldn't find any versions for "@typescript-eslint/typescript-estree" that matches "2.19.2"
8:13:35 PM: at MessageError.ExtendableBuiltin (/opt/build/cache/yarn/lib/cli.js:721:66)
8:13:35 PM: at new MessageError (/opt/build/cache/yarn/lib/cli.js:750:123)
8:13:35 PM: at Function.<anonymous> (/opt/build/cache/yarn/lib/cli.js:50504:13)
8:13:35 PM: at Generator.next (<anonymous>)
8:13:35 PM: at step (/opt/build/cache/yarn/lib/cli.js:304:30)
8:13:35 PM: at /opt/build/cache/yarn/lib/cli.js:315:13
8:13:35 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
8:13:35 PM: at process._tickCallback (internal/process/next_tick.js:68:7)
8:13:35 PM: Error during Yarn install
8:13:35 PM: Error running command: Build script returned non-zero exit code: 1
8:13:35 PM: Failing build: Failed to build site
8:13:35 PM: Shutting down logging, 1 messages pending
8:13:35 PM: Finished processing build request in 30.097734456s