Hi everyone! First excuse me for my english :(
The problem is that when I want deploy my project in Netlify, the console deploy show this error and I dont know to do.
Checked all name components that will match in CamelCase and still not working
```12:45:01 PM: Build ready to start
12:45:04 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
12:45:04 PM: build-image tag: v3.3.2
12:45:04 PM: buildbot version: 75cd99f62ada9e21edea53208e8baf0eab85a045
12:45:05 PM: Fetching cached dependencies
12:45:05 PM: Failed to fetch cache, continuing with build
12:45:05 PM: Starting to prepare the repo for build
12:45:06 PM: No cached dependencies found. Cloning fresh repo
12:45:06 PM: git clone https://github.com/RafaelEsaa/borodigitalGatsbyjs
12:45:08 PM: Preparing Git Reference refs/heads/master
12:45:09 PM: Starting build script
12:45:09 PM: Installing dependencies
12:45:09 PM: Attempting node version '10.11.0' from .node-version
12:45:10 PM: Downloading and installing node v10.11.0...
12:45:11 PM: Downloading https://nodejs.org/dist/v10.11.0/node-v10.11.0-linux-x64.tar.xz...
12:45:11 PM:
12:45:11 PM:
12:45:11 PM:
12:45:11 PM: 91.4%
12:45:11 PM:
12:45:11 PM: 100.0%
12:45:11 PM: Computing checksum with sha256sum
12:45:11 PM: Checksums matched!
12:45:14 PM: Now using node v10.11.0 (npm v6.4.1)
12:45:14 PM: Attempting ruby version 2.6.2, read from environment
12:45:16 PM: Using ruby version 2.6.2
12:45:16 PM: Using PHP version 5.6
12:45:16 PM: Started restoring cached node modules
12:45:16 PM: Finished restoring cached node modules
12:45:16 PM: Installing NPM modules using NPM version 6.4.1
12:45:50 PM: > [email protected] install /opt/build/repo/node_modules/sharp
12:45:50 PM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
12:45:51 PM: info
12:45:51 PM: sharp
12:45:51 PM: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
12:45:54 PM: > [email protected] install /opt/build/repo/node_modules/node-sass
12:45:54 PM: > node scripts/install.js
12:45:55 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-64_binding.node
12:45:56 PM: Download complete
12:45:56 PM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
12:45:56 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.12.0/linux-x64-64_binding.node
12:45:56 PM: > [email protected] postinstall /opt/build/repo/node_modules/core-js
12:45:56 PM: > node scripts/postinstall || echo "ignore"
12:45:56 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
12:45:56 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
12:45:56 PM: > https://opencollective.com/core-js
12:45:56 PM: > https://www.patreon.com/zloirock
12:45:56 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
12:45:56 PM: > [email protected] postinstall /opt/build/repo/node_modules/core-js-pure
12:45:56 PM: > node scripts/postinstall || echo "ignore"
12:45:56 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
12:45:56 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
12:45:56 PM: > https://opencollective.com/core-js
12:45:56 PM: > https://www.patreon.com/zloirock
12:45:56 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
12:45:57 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby-telemetry
12:45:57 PM: > node src/postinstall.js
12:45:57 PM: > [email protected] postinstall /opt/build/repo/node_modules/cwebp-bin
12:45:57 PM: > node lib/install.js
12:45:58 PM: โ cwebp pre-build test passed successfully
12:45:58 PM: > [email protected] postinstall /opt/build/repo/node_modules/mozjpeg
12:45:58 PM: > node lib/install.js
12:45:58 PM: โ mozjpeg pre-build test passed successfully
12:45:59 PM: > [email protected] postinstall /opt/build/repo/node_modules/pngquant-bin
12:45:59 PM: > node lib/install.js
12:45:59 PM: โ pngquant pre-build test passed successfully
12:45:59 PM: > [email protected] postinstall /opt/build/repo/node_modules/node-sass
12:45:59 PM: > node scripts/build.js
12:45:59 PM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-64/binding.node
12:45:59 PM: Testing binary
12:46:00 PM: Binary is fine
12:46:02 PM: npm
12:46:02 PM: WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
12:46:02 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:46:02 PM: added 1920 packages from 1846 contributors and audited 30386 packages in 45.396s
12:46:02 PM: found 0 vulnerabilities
12:46:03 PM: NPM modules installed
12:46:03 PM: Started restoring cached go cache
12:46:03 PM: Finished restoring cached go cache
12:46:03 PM: unset GOOS;
12:46:03 PM: unset GOARCH;
12:46:03 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
12:46:03 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:46:03 PM: go version >&2;
12:46:03 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
12:46:03 PM: go version go1.12 linux/amd64
12:46:03 PM: Installing missing commands
12:46:03 PM: Verify run directory
12:46:03 PM: Executing user command: gatsby build
12:46:06 PM: success open and validate gatsby-configs โ 0.007 s
12:46:07 PM: success load plugins โ 1.186 s
12:46:07 PM: success onPreInit โ 0.007 s
12:46:07 PM: success delete html and css files from previous builds โ 0.008 s
12:46:07 PM: success initialize cache โ 0.013 s
12:46:07 PM: success copy gatsby files โ 0.053 s
12:46:07 PM: success onPreBootstrap โ 0.014 s
12:46:08 PM: warning
12:46:08 PM: Could not get instagram posts using the Graph API. Error status Error: Request failed with status code 400
12:46:08 PM: warning Falling back to public scraping... with boro_digital
12:46:08 PM: success source and transform nodes โ 1.103 s
12:46:09 PM: warning There are conflicting field types in your data.
12:46:09 PM: If you have explicitly defined a type for those fields, you can safely ignore this warning message.
12:46:09 PM: Otherwise, Gatsby will omit those fields from the GraphQL schema.
12:46:09 PM: If you know all field types in advance, the best strategy is to explicitly define them with the createTypes action, and skip inference with the @dontInfer directive.
12:46:09 PM: See https://www.gatsbyjs.org/docs/actions/#createTypes
12:46:09 PM: DataJson.title:
12:46:09 PM: - type: [string]
12:46:09 PM: value: [ '
Hola
', ... ]I hope resolve problem coming soon! :(
This is the repo https://github.com/RafaelEsaa/borodigitalGatsbyjs if you want see the source
Hi @RafaelEsaa! Are you developing on a Mac? When I clone your repo to a Mac, git gives me the following warning:
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'src/components/ContactForm.js'
'src/components/contactForm.js'
'src/components/FeedInstagram.js'
'src/components/feedInstagram.js'
'src/components/Header.js'
'src/components/header.js'
'src/components/Layout.js'
'src/components/layout.js'
'src/components/Menu.js'
'src/components/menu.js'
'src/components/utils/EmailContact.js'
'src/components/utils/emailContact.js'
'src/componentsEsp/Header.js'
'src/componentsEsp/header.js'
'src/componentsEsp/Layout.js'
'src/componentsEsp/layout.js'
It seems you have multiple files with the same name, but different letter case, e.g.:
src/components/Layout.js
src/components/layout.js
The Mac filesystem can't tell the difference, so it just saves one of the files. On my laptop I get src/components/layout.js, but no src/components/Layout.js.
The Netlify builds run in a linux environment which _can_ tell the difference between the two files, so both files exist after Netlify clones your git repo. This means you end up with conflicting GraphQL queries when building the site on Netlify (or any other Linux environment).
I think you could use the GitHub web UI to go through and delete the duplicate files in https://github.com/RafaelEsaa/borodigitalGatsbyjs/tree/master/src/components and https://github.com/RafaelEsaa/borodigitalGatsbyjs/tree/master/src/componentsEsp.
Let me know if that helps!
Thanks for your answer @m-allanson I resolved this issue, deleted that files and doing push to the repo again. Deploy netlify was success!
I'd like to re-open this issue. I have the same occurring error at the end of many other errors that look to be stemming from something similar.
First time deploying to netlify and using Gatsby.
Been traversing all the suggested fixes on other posts. But have not ran into one that works yet.
I've made sure all components are named correctly.
6:35:27 PM: info bootstrap finished - 8.590 s
6:35:41 PM: error Generating JavaScript bundles failed
6:35:41 PM:
6:35:41 PM: Error: ./src/pages/index.js
6:35:41 PM: Module not found: Error: Can't resolve '../components/Head' in '/opt/build/rep o/src/pages'
6:35:41 PM: resolve '../components/Head' in '/opt/build/repo/src/pages'
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Head)
6:35:41 PM: no extension
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Head doesn't exist
6:35:41 PM: .mjs
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Head.mjs doesn't exist
6:35:41 PM: .js
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Head.js doesn't exist
6:35:41 PM: .jsx
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Head.jsx doesn't exist
6:35:41 PM: .wasm
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Head.wasm doesn't exist
6:35:41 PM: .json
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Head.json doesn't exist
6:35:41 PM: as directory
6:35:41 PM: /opt/build/repo/src/components/Head doesn't exist
6:35:41 PM: [/opt/build/repo/src/components/Head]
6:35:41 PM: [/opt/build/repo/src/components/Head.mjs]
6:35:41 PM: [/opt/build/repo/src/components/Head.js]
6:35:41 PM: [/opt/build/repo/src/components/Head.jsx]
6:35:41 PM: [/opt/build/repo/src/components/Head.wasm]
6:35:41 PM: [/opt/build/repo/src/components/Head.json]
6:35:41 PM: @ ./src/pages/index.js 7:0-38 10:63-67
6:35:41 PM: @ ./.cache/async-requires.js
6:35:41 PM: @ ./.cache/production-app.js
6:35:41 PM:
6:35:41 PM:
6:35:41 PM: Error: ./src/pages/blog2.js
6:35:41 PM: Module not found: Error: Can't resolve '../components/Layout' in '/opt/build/r epo/src/pages'
6:35:41 PM: resolve '../components/Layout' in '/opt/build/repo/src/pages'
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Layout)
6:35:41 PM: no extension
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: .mjs
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.mjs doesn't exist
6:35:41 PM: .js
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.js doesn't exist
6:35:41 PM: .jsx
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.jsx doesn't exist
6:35:41 PM: .wasm
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.wasm doesn't exist
6:35:41 PM: .json
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.json doesn't exist
6:35:41 PM: as directory
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: [/opt/build/repo/src/components/Layout]
6:35:41 PM: [/opt/build/repo/src/components/Layout.mjs]
6:35:41 PM: [/opt/build/repo/src/components/Layout.js]
6:35:41 PM: [/opt/build/repo/src/components/Layout.jsx]
6:35:41 PM: [/opt/build/repo/src/components/Layout.wasm]
6:35:41 PM: [/opt/build/repo/src/components/Layout.json]
6:35:41 PM: @ ./src/pages/blog2.js 3:0-42 10:29-35
6:35:41 PM: @ ./.cache/async-requires.js
6:35:41 PM: @ ./.cache/production-app.js
6:35:41 PM:
6:35:41 PM:
6:35:41 PM: Error: ./src/pages/contact.js
6:35:41 PM: Module not found: Error: Can't resolve '../components/Layout' in '/opt/build/r epo/src/pages'
6:35:41 PM: resolve '../components/Layout' in '/opt/build/repo/src/pages'
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Layout)
6:35:41 PM: no extension
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: .mjs
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.mjs doesn't exist
6:35:41 PM: .js
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.js doesn't exist
6:35:41 PM: .jsx
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.jsx doesn't exist
6:35:41 PM: .wasm
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.wasm doesn't exist
6:35:41 PM: .json
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.json doesn't exist
6:35:41 PM: as directory
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: [/opt/build/repo/src/components/Layout]
6:35:41 PM: [/opt/build/repo/src/components/Layout.mjs]
6:35:41 PM: [/opt/build/repo/src/components/Layout.js]
6:35:41 PM: [/opt/build/repo/src/components/Layout.jsx]
6:35:41 PM: [/opt/build/repo/src/components/Layout.wasm]
6:35:41 PM: [/opt/build/repo/src/components/Layout.json]
6:35:41 PM: @ ./src/pages/contact.js 2:0-42 6:29-35
6:35:41 PM: @ ./.cache/async-requires.js
6:35:41 PM: @ ./.cache/production-app.js
6:35:41 PM:
6:35:41 PM:
6:35:41 PM: Error: ./src/pages/index.js
6:35:41 PM: Module not found: Error: Can't resolve '../components/Layout' in '/opt/build/r epo/src/pages'
6:35:41 PM: resolve '../components/Layout' in '/opt/build/repo/src/pages'
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Layout)
6:35:41 PM: no extension
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: .mjs
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.mjs doesn't exist
6:35:41 PM: .js
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.js doesn't exist
6:35:41 PM: .jsx
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.jsx doesn't exist
6:35:41 PM: .wasm
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.wasm doesn't exist
6:35:41 PM: .json
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.json doesn't exist
6:35:41 PM: as directory
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: [/opt/build/repo/src/components/Layout]
6:35:41 PM: [/opt/build/repo/src/components/Layout.mjs]
6:35:41 PM: [/opt/build/repo/src/components/Layout.js]
6:35:41 PM: [/opt/build/repo/src/components/Layout.jsx]
6:35:41 PM: [/opt/build/repo/src/components/Layout.wasm]
6:35:41 PM: [/opt/build/repo/src/components/Layout.json]
6:35:41 PM: @ ./src/pages/index.js 3:0-42 10:29-35
6:35:41 PM: @ ./.cache/async-requires.js
6:35:41 PM: @ ./.cache/production-app.js
6:35:41 PM:
6:35:41 PM:
6:35:41 PM: Error: ./src/pages/page-2.js
6:35:41 PM: Module not found: Error: Can't resolve '../components/Layout' in '/opt/build/r epo/src/pages'
6:35:41 PM: resolve '../components/Layout' in '/opt/build/repo/src/pages'
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Layout)
6:35:41 PM: no extension
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: .mjs
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.mjs doesn't exist
6:35:41 PM: .js
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.js doesn't exist
6:35:41 PM: .jsx
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.jsx doesn't exist
6:35:41 PM: .wasm
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.wasm doesn't exist
6:35:41 PM: .json
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.json doesn't exist
6:35:41 PM: as directory
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: [/opt/build/repo/src/components/Layout]
6:35:41 PM: [/opt/build/repo/src/components/Layout.mjs]
6:35:41 PM: [/opt/build/repo/src/components/Layout.js]
6:35:41 PM: [/opt/build/repo/src/components/Layout.jsx]
6:35:41 PM: [/opt/build/repo/src/components/Layout.wasm]
6:35:41 PM: [/opt/build/repo/src/components/Layout.json]
6:35:41 PM: @ ./src/pages/page-2.js 3:0-42 7:29-35
6:35:41 PM: @ ./.cache/async-requires.js
6:35:41 PM: @ ./.cache/production-app.js
6:35:41 PM:
6:35:41 PM:
6:35:41 PM: Error: ./src/pages/about.js
6:35:41 PM: Module not found: Error: Can't resolve '../components/Layout' in '/opt/build/r epo/src/pages'
6:35:41 PM: resolve '../components/Layout' in '/opt/build/repo/src/pages'
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src/p ages)
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: using description file: /opt/build/repo/package.json (relative path: ./src /components/Layout)
6:35:41 PM: no extension
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout doesn't exist
6:35:41 PM: .mjs
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.mjs doesn't exist
6:35:41 PM: .js
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.js doesn't exist
6:35:44 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
6:35:41 PM: .jsx
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.jsx doesn't exist
6:35:41 PM: .wasm
6:35:41 PM: Field 'browser' doesn't contain a valid alias configuration
6:35:41 PM: /opt/build/repo/src/components/Layout.wasm doesn't exist
6:35:44 PM: Shutting down logging, 442 messages pending

Im assuming since there have been quite a few of these issues, I must have missed a solution somewhere.
I'm having the exact same issue.
Hi @Travisg25 @fmontes , I resolved this issue when review my query in graphql. I had a some key with equal name. Maybe is that! Regards!
This issue has been resolved. We weren't displaying all errors to the console. in the latest gatsby version we are.
Please open a new issue with new information if it still occurs.
I would like to open up this issue. I am experiencing it as well with my gatsby project. I have tried everything you have suggested but still getting the same error failed during stage 'building site': Build script returned non-zero exit code: 1 There is a link to my repository below and I copied the deployment log below as well. Thanks in advance for your help
https://github.com/mohamedx25/hackensack_firepit
2:43:39 PM: Build ready to start
2:43:42 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
2:43:42 PM: build-image tag: v3.3.2
2:43:42 PM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
2:43:42 PM: Fetching cached dependencies
2:43:42 PM: Failed to fetch cache, continuing with build
2:43:42 PM: Starting to prepare the repo for build
2:43:43 PM: No cached dependencies found. Cloning fresh repo
2:43:43 PM: git clone https://github.com/mohamedx25/hackensack_firepit
2:43:49 PM: Preparing Git Reference refs/heads/master
2:43:52 PM: Starting build script
2:43:52 PM: Installing dependencies
2:43:53 PM: Downloading and installing node v10.17.0...
2:43:54 PM: Downloading https://nodejs.org/dist/v10.17.0/node-v10.17.0-linux-x64.tar.xz...
2:43:54 PM:
2:43:54 PM: 6.9%
2:43:54 PM:
2:43:54 PM: #### 65.7%
2:43:54 PM:
2:43:54 PM: ####################################### 100.0%
2:43:54 PM: Computing checksum with sha256sum
2:43:54 PM: Checksums matched!
2:43:57 PM: Now using node v10.17.0 (npm v6.11.3)
2:43:57 PM: Attempting ruby version 2.6.2, read from environment
2:43:58 PM: Using ruby version 2.6.2
2:43:58 PM: Using PHP version 5.6
2:43:58 PM: Started restoring cached node modules
2:43:58 PM: Finished restoring cached node modules
2:43:58 PM: Installing NPM modules using NPM version 6.11.3
2:44:19 PM: > [email protected] postinstall /opt/build/repo/node_modules/core-js
2:44:19 PM: > node scripts/postinstall || echo "ignore"
2:44:19 PM: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
2:44:19 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
2:44:19 PM: > https://opencollective.com/core-js
2:44:19 PM: > https://www.patreon.com/zloirock
2:44:19 PM: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
2:44:19 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby-telemetry
2:44:19 PM: > node src/postinstall.js
2:44:19 PM: > [email protected] postinstall /opt/build/repo/node_modules/gatsby
2:44:19 PM: > node scripts/postinstall.js
2:44:21 PM: npm
2:44:21 PM: WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2:44:21 PM: npm
2:44:21 PM: WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2:44:21 PM: added 1525 packages from 796 contributors and audited 23869 packages in 21.561s
2:44:21 PM: found 0 vulnerabilities
2:44:21 PM: NPM modules installed
2:44:21 PM: Started restoring cached go cache
2:44:21 PM: Finished restoring cached go cache
2:44:21 PM: unset GOOS;
2:44:21 PM: unset GOARCH;
2:44:21 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:44:21 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:44:21 PM: go version >&2;
2:44:21 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
2:44:21 PM: go version go1.12 linux/amd64
2:44:21 PM: Installing missing commands
2:44:21 PM: Verify run directory
2:44:21 PM: Executing user command: gatsby build
2:44:24 PM: success open and validate gatsby-configs โ 0.026
2:44:24 PM: success load plugins โ 0.031
2:44:24 PM: success onPreInit โ 0.013
2:44:24 PM: success delete html and css files from previous builds โ 0.016
2:44:24 PM: success initialize cache โ 0.018
2:44:24 PM: success copy gatsby files โ 0.033
2:44:24 PM: success onPreBootstrap โ 0.019
2:44:24 PM: success source and transform nodes โ 0.032
2:44:24 PM: success building schema โ 0.138
2:44:24 PM: success createPages โ 0.011
2:44:24 PM: success createPagesStatefully โ 0.064
2:44:24 PM: success onPreExtractQueries โ 0.010
2:44:24 PM: success update schema โ 0.064
2:44:24 PM: success extract queries from components โ 0.041
2:44:24 PM: success write out requires โ 0.014
2:44:24 PM: success write out redirect data โ 0.010
2:44:24 PM: success onPostBootstrap โ 0.010
2:44:24 PM: info bootstrap finished - 2.918 s
2:44:24 PM: success run static queries โ 0.011
2:44:36 PM: error #98123 WEBPACK
2:44:36 PM: Generating JavaScript bundles failed
2:44:36 PM: /opt/build/repo/styles.fcadc52750a877a6c584.css:311:5: Unknown word
2:44:36 PM: See our docs page for more info on this error: https://gatsby.dev/issue-how-to
2:44:36 PM: Skipping functions preparation step: no functions directory set
2:44:36 PM: Caching artifacts
2:44:36 PM: Started saving node modules
2:44:36 PM: Finished saving node modules
2:44:36 PM: Started saving pip cache
2:44:36 PM: Finished saving pip cache
2:44:36 PM: Started saving emacs cask dependencies
2:44:36 PM: Finished saving emacs cask dependencies
2:44:36 PM: Started saving maven dependencies
2:44:36 PM: Finished saving maven dependencies
2:44:36 PM: Started saving boot dependencies
2:44:36 PM: Finished saving boot dependencies
2:44:36 PM: Started saving go dependencies
2:44:36 PM: Finished saving go dependencies
2:44:38 PM: Error running command: Build script returned non-zero exit code: 1
2:44:38 PM: Failing build: Failed to build site
2:44:38 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
2:44:38 PM: Finished processing build request in 56.334823136s
Quick update,
I was getting the non-zero exit code: 1
I tried all the solutions that you mention guys, but did not succeed until I noticed that when passing the environment variables values to netlify I made a mistake in one input field, that gave me this error.
I just deleted the site, and deployed it all over again. I could just change the value of my environment variables from the Site Settings, but at that point I did not know it yet.
I had same issue.
7:04:33 AM: Finished saving go dependencies
7:04:35 AM: Error running command: Build script returned non-zero exit code: 1
7:04:35 AM: Failing build: Failed to build site
7:04:35 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
7:04:35 AM: Finished processing build request in 1m21.157558583s
My fix was to remove yarn.lock. I had built the site locally using npm not yarn.
I had noticed this in the failed deploy log on Netlify:
7:23:18 AM: Installing NPM modules using Yarn version 1.17.0
7:23:18 AM: yarn install v1.17.0
7:23:18 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
7:23:18 AM: [1/4] Resolving packages...
So rather than remove package-lock.json I removed yarn.lock.
I'm getting the same error. Can anyone advise? I have a feeling it's something to do with my logo image? But I'm not really sure where to start with this.
8:20:58 PM: Build ready to start
8:21:00 PM: build-image version: 9cade8af58c2cf3a17a1e9433d2e979149488837
8:21:00 PM: build-image tag: v3.3.5
8:21:00 PM: buildbot version: 2d05064ce3dd2eb95d282a24602ab707dd9581e8
8:21:00 PM: Fetching cached dependencies
8:21:00 PM: Starting to download cache of 254.9KB
8:21:00 PM: Finished downloading cache in 129.912733ms
8:21:00 PM: Starting to extract cache
8:21:00 PM: Failed to fetch cache, continuing with build
8:21:00 PM: Starting to prepare the repo for build
8:21:01 PM: No cached dependencies found. Cloning fresh repo
8:21:01 PM: git clone https://github.com/keith-greer/gatsby-starter-default
8:21:03 PM: Preparing Git Reference refs/heads/master
8:21:03 PM: Starting build script
8:21:03 PM: Installing dependencies
8:21:04 PM: v10.17.0 is already installed.
8:21:05 PM: Now using node v10.17.0 (npm v6.11.3)
8:21:05 PM: Attempting ruby version 2.6.2, read from environment
8:21:06 PM: Using ruby version 2.6.2
8:21:07 PM: Using PHP version 5.6
8:21:07 PM: Started restoring cached node modules
8:21:07 PM: Finished restoring cached node modules
8:21:07 PM: Started restoring cached yarn cache
8:21:07 PM: Finished restoring cached yarn cache
8:21:07 PM: Installing yarn at version 1.17.0
8:21:07 PM: Installing Yarn!
8:21:07 PM: > Downloading tarball...
8:21:07 PM: [1/2]: https://yarnpkg.c
8:21:07 PM: om/downloads/1.17.0/yarn-v1.17.0.tar.gz --> /t
8:21:07 PM: mp/yarn.tar.gz.l9o00s9b7l
8:21:07 PM: % Total % Received % Xferd Average Speed Ti
8:21:07 PM: me Time Time Current
8:21:07 PM: Dload Upload Total Spent Left Speed
8:21:07 PM:
0
8:21:07 PM: 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
8:21:07 PM:
100 93 100 93 0 0 400
8:21:07 PM: 0 --:--:-- --:--:-- --:--:-- 402
8:21:07 PM:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
8:21:07 PM:
100 609 0 609 0 0 955 0 --:--:-- --:--:-- --:--:-- 594k
8:21:08 PM:
100 1213k 100 1213k 0 0 1161k 0 0:00:01 0:00:01 --:--:-- 1161k
8:21:08 PM: [2/2]: https://yarnpk
8:21:08 PM: g.com/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.l9o00s9b7l.asc
8:21:08 PM:
100 97 100
8:21:08 PM: 97 0 0 2079 0 --:--:-- --:--:-- --:--:-- 2079
8:21:08 PM:
100 613 0 613 0 0 3884 0 --:--:-- --:--:-- --:--:-- 3884
8:21:08 PM:
100 832 100 832 0 0 4090
8:21:08 PM: 0 --:--:-- --:--:-- --:--:-- 4090
8:21:08 PM: > Verifying integrity...
8:21:08 PM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
8:21:08 PM: gpg: Good signature from "Yarn Packaging <[email protected]>"
8:21:08 PM: gpg: WARNING: This key is not certified with a trusted signature!
8:21:08 PM: gpg: There is no indication that the signature belongs to the owner.
8:21:08 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907
8:21:08 PM: BBB7 1646 B01B 86E5 0310
8:21:08 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
8:21:08 PM: > GPG signature looks good
8:21:08 PM: > Extracting to ~/.yarn...
8:21:08 PM: > Adding to $PATH...
8:21:09 PM: > Successfully installed Yarn 1.17.0! Please open another terminal where the `yarn` command will now be available.
8:21:09 PM: Installing NPM modules using Yarn version 1.17.0
8:21:10 PM: yarn install v1.17.0
8:21:10 PM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
8:21:10 PM: [1/4] Resolving packages...
8:21:11 PM: [2/4] Fetching packages...
8:21:31 PM: info [email protected]: The platform "linux" is incompatible with this module.
8:21:31 PM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
8:21:31 PM: info [email protected]: The platform "linux" is incompatible with this module.
8:21:31 PM: info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
8:21:31 PM: [3/4] Linking dependencies...
8:21:31 PM: warning "gatsby > [email protected]" has incorrect peer dependency "[email protected]".
8:21:31 PM: warning "gatsby > @typescript-eslint/eslint-plugin > [email protected]" 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".
8:21:41 PM: [4/4] Building fresh packages...
8:21:45 PM: success Saved lockfile.
8:21:45 PM: Done in 35.51s.
8:21:45 PM: NPM modules installed using Yarn
8:21:45 PM: Started restoring cached go cache
8:21:45 PM: Finished restoring cached go cache
8:21:45 PM: unset GOOS;
8:21:45 PM: unset GOARCH;
8:21:45 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
8:21:45 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
8:21:45 PM: go version >&2;
8:21:45 PM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
8:21:45 PM: go version go1.12 linux/amd64
8:21:45 PM: Installing missing commands
8:21:45 PM: Verify run directory
8:21:45 PM: Executing user command: gatsby build
8:21:48 PM: success open and validate gatsby-configs โ 0.043
8:21:49 PM: success load plugins โ 0.579
8:21:49 PM: success onPreInit โ 0.003
8:21:49 PM: success delete html and css files from previous builds โ 0.013
8:21:49 PM: success initialize cache โ 0.008
8:21:49 PM: success copy gatsby files โ 0.046
8:21:49 PM: success onPreBootstrap โ 0.010
8:21:49 PM: success source and transform nodes โ 0.066
8:21:49 PM: success Add explicit types โ 0.007
8:21:49 PM: success Add inferred types โ 0.137
8:21:49 PM: success Processing types โ 0.096
8:21:49 PM: success building schema โ 0.276
8:21:49 PM: success createPages โ 0.000
8:21:49 PM: success createPagesStatefully โ 0.067
8:21:49 PM: success onPreExtractQueries โ 0.002
8:21:49 PM: success update schema โ 0.024
8:21:49 PM: success extract queries from components โ 0.319
8:21:49 PM: success write out requires โ 0.004
8:21:49 PM: success write out redirect data โ 0.001
8:21:49 PM: success Build manifest and related icons โ 0.001
8:21:49 PM: success onPostBootstrap โ 0.002
8:21:49 PM: info bootstrap finished - 3.913 s
8:21:50 PM: success run static queries โ 0.283 โ 3/3 10.65 queries/second
8:21:50 PM: success Generating image thumbnails โ 6/6 - 0.669 s
8:22:03 PM: error #98123 WEBPACK
8:22:03 PM: Generating JavaScript bundles failed
8:22:03 PM: Can't resolve '../../public/static/6d91c86c0fde632ba4cd01062fd9ccfa/logo/site-logo.png' in '/opt/build/repo/src/components'
8:22:03 PM: File: src/components/header.js
8:22:03 PM: See our docs page for more info on this error: https://gatsby.dev/issue-how-to
8:22:03 PM: Skipping functions preparation step: no functions directory set
8:22:03 PM: Caching artifacts
8:22:03 PM: Started saving node modules
8:22:03 PM: Finished saving node modules
8:22:03 PM: Started saving yarn cache
8:22:03 PM: Finished saving yarn cache
8:22:03 PM: Started saving pip cache
8:22:03 PM: Finished saving pip cache
8:22:03 PM: Started saving emacs cask dependencies
8:22:03 PM: Finished saving emacs cask dependencies
8:22:03 PM: Started saving maven dependencies
8:22:03 PM: Finished saving maven dependencies
8:22:03 PM: Started saving boot dependencies
8:22:03 PM: Finished saving boot dependencies
8:22:03 PM: Started saving go dependencies
8:22:03 PM: Finished saving go dependencies
8:22:05 PM: Error running command: Build script returned non-zero exit code: 1
8:22:05 PM: Failing build: Failed to build site
8:22:05 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
8:22:05 PM: Finished processing build request in 1m4.909712701s
Most helpful comment
Hi @RafaelEsaa! Are you developing on a Mac? When I clone your repo to a Mac, git gives me the following warning:
It seems you have multiple files with the same name, but different letter case, e.g.:
The Mac filesystem can't tell the difference, so it just saves one of the files. On my laptop I get
src/components/layout.js, but nosrc/components/Layout.js.The Netlify builds run in a linux environment which _can_ tell the difference between the two files, so both files exist after Netlify clones your git repo. This means you end up with conflicting GraphQL queries when building the site on Netlify (or any other Linux environment).
I think you could use the GitHub web UI to go through and delete the duplicate files in https://github.com/RafaelEsaa/borodigitalGatsbyjs/tree/master/src/components and https://github.com/RafaelEsaa/borodigitalGatsbyjs/tree/master/src/componentsEsp.
Let me know if that helps!