Gatsby builds only failing on Netlify

Hello, I’m building a complex site that pulls some data from git submodules and combines a bunch of data to ultimately pipe it into Gatsby. The issue is that I can get the builds to work absolutely fine on 2 separate Linux machines with different distros (Debian and Ubuntu), different Node versions (10.16 and 10.17), but somehow my builds are always broken on Netlify’s server. Does anyone know what I could do?

Repo : https://github.com/30-seconds/30-seconds-web/tree/production (building from production branch)

Netlify log : https://app.netlify.com/sites/hopeful-lovelace-4f6a00/deploys/5dd95d0ac2bced000806a25f

6:23:38 PM: Build ready to start
6:23:45 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
6:23:45 PM: build-image tag: v3.3.2
6:23:45 PM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
6:23:45 PM: Fetching cached dependencies
6:23:45 PM: Failed to fetch cache, continuing with build
6:23:45 PM: Starting to prepare the repo for build
6:23:45 PM: No cached dependencies found. Cloning fresh repo
6:23:45 PM: git clone https://github.com/30-seconds/30-seconds-web
6:23:46 PM: Preparing Git Reference refs/heads/production
6:23:58 PM: Found netlify.toml. Overriding site configuration
6:23:58 PM: Starting build script
6:23:58 PM: Installing dependencies
6:23:59 PM: Downloading and installing node v10.17.0...
6:24:00 PM: Downloading https://nodejs.org/dist/v10.17.0/node-v10.17.0-linux-x64.tar.xz...
6:24:00 PM: 
####################
6:24:00 PM: ##########                                            42.9%
6:24:00 PM: 
##################################
6:24:00 PM: ###################################### 100.0%
6:24:00 PM: Computing checksum with sha256sum
6:24:00 PM: Checksums matched!
6:24:03 PM: Now using node v10.17.0 (npm v6.11.3)
6:24:03 PM: Attempting ruby version 2.6.2, read from environment
6:24:05 PM: Using ruby version 2.6.2
6:24:05 PM: Using PHP version 5.6
6:24:05 PM: Started restoring cached node modules
6:24:05 PM: Finished restoring cached node modules
6:24:05 PM: Installing NPM modules using NPM version 6.11.3
6:24:59 PM: > sharp@0.23.0 install /opt/build/repo/node_modules/sharp
6:24:59 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
6:24:59 PM: info
6:24:59 PM: sharp
6:24:59 PM:  Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
6:25:01 PM: > node-sass@4.12.0 install /opt/build/repo/node_modules/node-sass
6:25:01 PM: > node scripts/install.js
6:25:02 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-64_binding.node
6:25:02 PM: Download complete
6:25:02 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
6:25:02 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.12.0/linux-x64-64_binding.node
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@babel/polyfill/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@gatsbyjs/relay-compiler/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/bmp/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/core/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/custom/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/gif/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/jpeg/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-blit/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:03 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:03 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:03 PM: > https://opencollective.com/core-js 
6:25:03 PM: > https://www.patreon.com/zloirock 
6:25:03 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:03 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-blur/node_modules/core-js
6:25:03 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-color/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-contain/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-cover/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-crop/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-displace/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-dither/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-flip/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-gaussian/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-invert/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-mask/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:04 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:04 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:04 PM: > https://opencollective.com/core-js 
6:25:04 PM: > https://www.patreon.com/zloirock 
6:25:04 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:04 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-normalize/node_modules/core-js
6:25:04 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-print/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-resize/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-rotate/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugin-scale/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/plugins/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/png/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/tiff/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/types/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/@jimp/utils/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:05 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:05 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:05 PM: > https://opencollective.com/core-js 
6:25:05 PM: > https://www.patreon.com/zloirock 
6:25:05 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:05 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
6:25:05 PM: > node scripts/postinstall || echo "ignore"
6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:06 PM: > https://opencollective.com/core-js 
6:25:06 PM: > https://www.patreon.com/zloirock 
6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:06 PM: > core-js@3.2.1 postinstall /opt/build/repo/node_modules/core-js
6:25:06 PM: > node scripts/postinstall || echo "ignore"
6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:06 PM: > https://opencollective.com/core-js 
6:25:06 PM: > https://www.patreon.com/zloirock 
6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:06 PM: > core-js-pure@3.2.1 postinstall /opt/build/repo/node_modules/core-js-pure
6:25:06 PM: > node scripts/postinstall || echo "ignore"
6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:06 PM: > https://opencollective.com/core-js 
6:25:06 PM: > https://www.patreon.com/zloirock 
6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:06 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/gatsby/node_modules/core-js
6:25:06 PM: > node scripts/postinstall || echo "ignore"
6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:06 PM: > https://opencollective.com/core-js 
6:25:06 PM: > https://www.patreon.com/zloirock 
6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:06 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/jimp/node_modules/core-js
6:25:06 PM: > node scripts/postinstall || echo "ignore"
6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:06 PM: > https://opencollective.com/core-js 
6:25:06 PM: > https://www.patreon.com/zloirock 
6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:06 PM: > core-js@2.6.9 postinstall /opt/build/repo/node_modules/relay-runtime/node_modules/core-js
6:25:06 PM: > node scripts/postinstall || echo "ignore"
6:25:06 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
6:25:06 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
6:25:06 PM: > https://opencollective.com/core-js 
6:25:06 PM: > https://www.patreon.com/zloirock 
6:25:06 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
6:25:06 PM: > gatsby-telemetry@1.1.25 postinstall /opt/build/repo/node_modules/gatsby-telemetry
6:25:06 PM: > node src/postinstall.js
6:25:06 PM: > cwebp-bin@5.1.0 postinstall /opt/build/repo/node_modules/cwebp-bin
6:25:06 PM: > node lib/install.js
6:25:07 PM:   ✔ cwebp pre-build test passed successfully
6:25:07 PM: > mozjpeg@6.0.1 postinstall /opt/build/repo/node_modules/mozjpeg
6:25:07 PM: > node lib/install.js
6:25:07 PM:   ✔ mozjpeg pre-build test passed successfully
6:25:07 PM: > pngquant-bin@5.0.2 postinstall /opt/build/repo/node_modules/pngquant-bin
6:25:07 PM: > node lib/install.js
6:25:08 PM:   ✔ pngquant pre-build test passed successfully
6:25:08 PM: > gatsby-cli@2.7.50 postinstall /opt/build/repo/node_modules/gatsby/node_modules/gatsby-cli
6:25:08 PM: > node scripts/postinstall.js
6:25:08 PM: > gatsby@2.15.22 postinstall /opt/build/repo/node_modules/gatsby
6:25:08 PM: > node scripts/postinstall.js
6:25:08 PM: > node-sass@4.12.0 postinstall /opt/build/repo/node_modules/node-sass
6:25:08 PM: > node scripts/build.js
6:25:08 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
6:25:08 PM: Testing binary
6:25:09 PM: Binary is fine
6:25:14 PM: npm
6:25:14 PM:  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
6:25:14 PM: npm WARN
6:25:14 PM: notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:25:14 PM: npm
6:25:14 PM:  WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/gatsby/node_modules/fsevents):
6:25:14 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:25:14 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/gatsby-source-filesystem/node_modules/fsevents):
6:25:14 PM: npm
6:25:14 PM: WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:25:14 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/gatsby-page-utils/node_modules/fsevents):
6:25:14 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
6:25:14 PM: added 2736 packages from 1524 contributors and audited 969117 packages in 68.086s
6:25:14 PM: found 1 low severity vulnerability
6:25:14 PM:   run `npm audit fix` to fix them, or `npm audit` for details
6:25:14 PM: NPM modules installed
6:25:15 PM: Started restoring cached go cache
6:25:15 PM: Finished restoring cached go cache
6:25:15 PM: unset GOOS;
6:25:15 PM: unset GOARCH;
6:25:15 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
6:25:15 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
6:25:15 PM: go version >&2;
6:25:15 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
6:25:15 PM: go version go1.12 linux/amd64
6:25:15 PM: Installing missing commands
6:25:15 PM: Verify run directory
6:25:15 PM: Executing user command: npm run build
6:25:15 PM: > 30-seconds-web@1.0.0 prebuild /opt/build/repo
6:25:15 PM: > ./src/jobs/prepare_env.sh PRODUCTION; ./src/jobs/fetch_content_sources.sh; ./src/jobs/prepare_cache_key.sh
6:25:15 PM: Preparing environment...
6:25:15 PM: Fetching content sources started...
6:25:16 PM: Submodule path 'content/sources/30code': checked out 'ccfee9a80f67a907de34b7af812b5c83db5617a5'
6:25:17 PM: Fetching content sources complete
6:25:17 PM: Generating cache key...
6:25:17 PM: > 30-seconds-web@1.0.0 build /opt/build/repo
6:25:17 PM: > NODE_PATH=src npx --node-arg '-r esm' gatsby build
6:25:25 PM: success open and validate gatsby-configs — 0.226
6:25:30 PM: success parse requirables
6:25:30 PM: success parse reducers
6:25:30 PM: success parse resolvers
6:25:30 PM: success parse templates
6:25:30 PM: success parse queries
6:25:30 PM: success load plugins — 5.581
6:25:30 PM: success onPreInit — 0.037
6:25:30 PM: success delete html and css files from previous builds — 0.045
6:25:30 PM: success initialize cache — 0.043
6:25:31 PM: success copy gatsby files — 0.178
6:25:31 PM: success onPreBootstrap — 0.057
6:25:34 PM: success source and transform nodes — 3.226
6:25:34 PM: success Add explicit types — 0.044
6:25:34 PM: success Add inferred types — 0.322
6:25:35 PM: success Processing types — 0.198
6:25:35 PM: error Snippet.html provided incorrect OutputType: 'Object({ resolve: [function resolve] })'
6:25:35 PM: Snippet.html provided incorrect OutputType: 'Object({ resolve: [function resolve] })'
6:25:35 PM: See our docs page for more info on this error: https://gatsby.dev/issue-how-to
6:25:35 PM: 
6:25:35 PM:   Error: Snippet.html provided incorrect OutputType: 'Object({ resolve: [functio  n resolve] })'
6:25:35 PM:   
6:25:35 PM:   - TypeMapper.js:294 TypeMapper.convertOutputFieldConfig
6:25:35 PM:     [repo]/[graphql-compose]/lib/TypeMapper.js:294:15
6:25:35 PM:   
6:25:35 PM:   - configAsThunk.js:19 resolveOutputConfigAsThunk
6:25:35 PM:     [repo]/[graphql-compose]/lib/utils/configAsThunk.js:19:41
6:25:35 PM:   
6:25:35 PM:   - ObjectTypeComposer.js:300 ObjectTypeComposer.getFieldConfig
6:25:35 PM:     [repo]/[graphql-compose]/lib/ObjectTypeComposer.js:300:58
6:25:35 PM:   
6:25:35 PM:   - ObjectTypeComposer.js:304 ObjectTypeComposer.getFieldType
6:25:35 PM:     [repo]/[graphql-compose]/lib/ObjectTypeComposer.js:304:17
6:25:35 PM:   
6:25:35 PM:   - SchemaComposer.js:144 tc.getFieldNames.forEach.fieldName
6:25:35 PM:     [repo]/[graphql-compose]/lib/SchemaComposer.js:144:28
6:25:35 PM:   
6:25:35 PM:   - Array.forEach
6:25:35 PM:   
6:25:35 PM:   - SchemaComposer.js:143 SchemaComposer.removeEmptyTypes
6:25:35 PM:     [repo]/[graphql-compose]/lib/SchemaComposer.js:143:24
6:25:35 PM:   
6:25:35 PM:   - SchemaComposer.js:154 tc.getFieldNames.forEach.fieldName
6:25:35 PM:     [repo]/[graphql-compose]/lib/SchemaComposer.js:154:18
6:25:35 PM:   
6:25:35 PM:   - Array.forEach
6:25:35 PM:   
6:25:35 PM:   - SchemaComposer.js:143 SchemaComposer.removeEmptyTypes
6:25:35 PM:     [repo]/[graphql-compose]/lib/SchemaComposer.js:143:24
6:25:35 PM:   
6:25:35 PM:   - SchemaComposer.js:103 SchemaComposer.buildSchema
6:25:35 PM:     [repo]/[graphql-compose]/lib/SchemaComposer.js:103:12
6:25:35 PM:   
6:25:35 PM:   - schema.js:94 buildSchema
6:25:35 PM:     [repo]/[gatsby]/dist/schema/schema.js:94:33
6:25:35 PM:   
6:25:35 PM: 
6:25:35 PM: npm
6:25:35 PM:  ERR! code
6:25:35 PM:  ELIFECYCLE
6:25:35 PM: npm
6:25:35 PM: ERR! errno 1
6:25:35 PM: npm
6:25:35 PM:  ERR! 30-seconds-web@1.0.0 build: `NODE_PATH=src npx --node-arg '-r esm' gatsby build`
6:25:35 PM: npm ERR!
6:25:35 PM:  Exit status 1
6:25:35 PM: npm
6:25:35 PM:  ERR!
6:25:35 PM: npm ERR!
6:25:35 PM:  Failed at the 30-seconds-web@1.0.0 build script.
6:25:35 PM: npm
6:25:35 PM:  ERR! This is probably not a problem with npm. There is likely additional logging output above.
6:25:35 PM: npm
6:25:35 PM:  ERR! A complete log of this run can be found in:
6:25:35 PM: npm ERR!
6:25:35 PM:      /opt/buildhome/.npm/_logs/2019-11-23T16_25_35_400Z-debug.log
6:25:35 PM: Skipping functions preparation step: no functions directory set
6:25:35 PM: Caching artifacts
6:25:35 PM: Started saving node modules
6:25:35 PM: Finished saving node modules
6:25:35 PM: Started saving pip cache
6:25:35 PM: Finished saving pip cache
6:25:35 PM: Started saving emacs cask dependencies
6:25:35 PM: Finished saving emacs cask dependencies
6:25:35 PM: Started saving maven dependencies
6:25:35 PM: Finished saving maven dependencies
6:25:35 PM: Started saving boot dependencies
6:25:35 PM: Finished saving boot dependencies
6:25:35 PM: Started saving go dependencies
6:25:35 PM: Finished saving go dependencies
6:25:38 PM: Error running command: Build script returned non-zero exit code: 1
6:25:38 PM: Failing build: Failed to build site
6:25:38 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
6:25:38 PM: Finished processing build request in 1m53.099978476s

Hi @Chalarangelo! While we can’t help with your source code in depth, this article describes how you can debug and some things you should try, especially around syncing versions between netlify and your local, and watching out for some things like case sensitive filesystems (I see some capital letters in your error: 6:25:35 PM: Snippet.html provided incorrect OutputType: 'Object({ resolve: [function resolve] })' that might be a contributing factor):

Take a look through there and hopefully you’ll find an answer. If not, you could try printing the error log after build, by using a build command like this:

npm run build ; cat /opt/buildhome/.npm/_logs/2019-*debug.log ; sleep 120 ; false

That will:

  1. run your build
  2. even if it fails, send the log file if it exists
  3. wait 2 minutes to finish logging that output file
  4. make sure we don’t publish a broken build.

You’ll have to undo that setting once you’ve understood and hopefully fixed the error since your site will never publish with that build command (you can restore to plain npm run build once fixed)