Sorry for the late response.
I’ve looked through that guide, and the only possible problem is #2: Your dependencies have binary components, which need to be rebuilt for some reason.
Here are my dependencies:
{
"dependencies": {
"@greenelab/hclust": "^0.0.0",
"@stdlib/stdlib": "^0.0.91",
"color": "^3.1.2",
"d3": "^5.15.0",
"history": "^4.10.1",
"immer": "^6.0.2",
"intersection-observer": "^0.7.0",
"multtest": "^0.1.7",
"object-sizeof": "^1.5.3",
"prop-types": "^15.7.2",
"rc-slider": "^9.2.4",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-intersection-observer": "^8.26.1",
"react-linkify": "^1.0.0-alpha",
"react-redux": "^7.2.0",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.1",
"react-transition-group": "^4.3.0",
"redux": "^4.0.5",
"redux-actions": "^2.6.5",
"redux-logger": "^3.0.6",
"redux-query-sync": "^0.1.9",
"redux-sequence-action": "^0.2.1",
"redux-thunk": "^2.3.0",
"unescape": "^1.0.1",
"use-debounce": "^3.4.0",
"workerize-loader": "^1.1.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.3.0",
"@testing-library/react": "^10.0.2",
"eslint-config-greenelab": "git+https://git@github.com/greenelab/eslint-config-greenelab.git",
"node-fetch": "^2.6.0",
"prettier-config-greenelab": "git+https://git@github.com/greenelab/prettier-config-greenelab.git",
"rewire": "^5.0.0"
}
}
Here is the build log:
5:52:51 PM: Build ready to start
5:52:54 PM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
5:52:54 PM: build-image tag: v3.3.7
5:52:54 PM: buildbot version: 7f867b365e4c3934ca5b72b9d51f0a4d1f96685d
5:52:54 PM: Fetching cached dependencies
5:52:54 PM: Starting to download cache of 362.7MB
5:53:01 PM: Finished downloading cache in 7.402903356s
5:53:01 PM: Starting to extract cache
5:53:20 PM: Finished extracting cache in 19.035413942s
5:53:21 PM: Finished fetching cache in 26.575510656s
5:53:21 PM: Starting to prepare the repo for build
5:53:21 PM: Preparing Git Reference pull/153/head
5:53:22 PM: Starting build script
5:53:22 PM: Installing dependencies
5:53:23 PM: Started restoring cached node version
5:53:29 PM: Finished restoring cached node version
5:53:30 PM: Downloading and installing node v10.20.0...
5:53:30 PM: Downloading https://nodejs.org/dist/v10.20.0/node-v10.20.0-linux-x64.tar.xz...
5:53:30 PM:
#######
5:53:30 PM: 10.5%
5:53:31 PM:
############################
5:53:31 PM: ############################################ 100.0%
5:53:31 PM: Computing checksum with sha256sum
5:53:31 PM: Checksums matched!
5:53:35 PM: Now using node v10.20.0 (npm v6.14.4)
5:53:35 PM: Attempting ruby version 2.6.2, read from environment
5:53:37 PM: Using ruby version 2.6.2
5:53:37 PM: Using PHP version 5.6
5:53:37 PM: Started restoring cached node modules
5:53:37 PM: Finished restoring cached node modules
5:53:37 PM: Started restoring cached yarn cache
5:53:37 PM: Finished restoring cached yarn cache
5:53:38 PM: Installing NPM modules using Yarn version 1.17.0
5:53:39 PM: yarn install v1.17.0
5:53:39 PM: warning package.json: No license field
5:53:39 PM: warning adage-frontend@0.2.8: No license field
5:53:39 PM: [1/4] Resolving packages...
5:53:40 PM: [2/4] Fetching packages...
5:55:17 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
5:55:17 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:55:17 PM: info fsevents@1.2.12: The platform "linux" is incompatible with this module.
5:55:17 PM: info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
5:55:17 PM: [3/4] Linking dependencies...
5:55:17 PM: warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
5:55:17 PM: warning " > workerize-loader@1.1.0" has unmet peer dependency "webpack@*".
5:55:49 PM: [4/4] Building fresh packages...
5:55:58 PM: success Saved lockfile.
5:55:58 PM: Done in 138.62s.
5:55:58 PM: NPM modules installed using Yarn
5:55:58 PM: warning package.json: No license field
5:55:58 PM: Started restoring cached go cache
5:55:58 PM: Finished restoring cached go cache
5:55:58 PM: unset GOOS;
5:55:58 PM: unset GOARCH;
5:55:58 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
5:55:58 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
5:55:58 PM: go version >&2;
5:55:58 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
5:55:58 PM: go version go1.12 linux/amd64
5:55:58 PM: Installing missing commands
5:55:58 PM: Verify run directory
5:55:58 PM: Executing user command: yarn build
5:55:59 PM: yarn run v1.17.0
5:55:59 PM: warning package.json: No license field
5:55:59 PM: $ node ./scripts/build.js
5:56:00 PM: Creating an optimized production build...
5:56:04 PM: Failed to compile.
5:56:04 PM: ./src/index.js
**5:56:04 PM: Error: [BABEL] /opt/build/repo/src/index.js: Cannot find module '@babel/helper-call-delegate' (While processing: "/opt/build/repo/node_modules/babel-preset-react-app/index.js")**
5:56:04 PM: error Command failed with exit code 1.
5:56:04 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
5:56:04 PM: Skipping functions preparation step: no functions directory set
5:56:04 PM: Caching artifacts
5:56:04 PM: Started saving node modules
5:56:04 PM: Finished saving node modules
5:56:04 PM: Started saving yarn cache
5:56:04 PM: Finished saving yarn cache
5:56:04 PM: Started saving pip cache
5:56:04 PM: Finished saving pip cache
5:56:04 PM: Started saving emacs cask dependencies
5:56:04 PM: Finished saving emacs cask dependencies
5:56:04 PM: Started saving maven dependencies
5:56:04 PM: Finished saving maven dependencies
5:56:04 PM: Started saving boot dependencies
5:56:04 PM: Finished saving boot dependencies
5:56:04 PM: Started saving go dependencies
5:56:04 PM: Finished saving go dependencies
5:56:14 PM: Error running command: Build script returned non-zero exit code: 1
5:56:14 PM: Failing build: Failed to build site
5:56:14 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
5:56:14 PM: Finished processing build request in 3m20.621889978s
Is there a way to simply always clear the cache before building? Perhaps this post’s suggestion of rm -rf $NETLIFY_CACHE_DIR && run-my-build
still works?