Seems there is an issue with an SVG file. Without seeing/testing myself I can only guess, but you might need to disable SVG minification as per this Parcel documentation.
There is another thread regarding this issue. The simple fix is to downgrade parcel to 1.12.3 by running npm i -D parcel-bundler@1.12.3. This worked for me. Other options are to upgrade to parcel v2 though this may introduce other bugs (but also add more features perhaps.)
If you want to pin the version to avoid updating to 1.12.4 again (inadvertently) run npm i -DE parcel-bundler@1.12.3 which will pin this version.
Hi Sam, thanks for your swift reply. I have quickly looked at what I could do on my side but could not find the answer. I have pushed some builds last Monday and all was alright, do not understand what has happened since ! If you have other ideas, I’d love to read ! Thank you, Cristina
Hello again Sam,
Looking closely at the log errors, I could see there was something related to a png image, which I found and deleted. It still does not work and I get the following:
10:59:19 PM: warning The icon(src/assets/images/gatsby-icon.png) you provided to ‘gatsby-plugin-manifest’ is not square.
10:59:19 PM: The icons we generate will be square and for the best results we recommend you provide a square icon.
10:59:19 PM: success Build manifest and related icons - 0.667s
10:59:19 PM: success onPostBootstrap - 0.722s
10:59:19 PM: info bootstrap finished - 64.583s
10:59:20 PM: success run static queries - 1.023s - 1/1 0.98/s
10:59:21 PM: success run page queries - 0.445s - 14/14 31.49/s
10:59:21 PM: success write out requires - 0.004s
10:59:21 PM: warning Browserslist: caniuse-lite is outdated. Please run:
10:59:21 PM: npx browserslist@latest --update-db
10:59:21 PM: Why you should do it regularly:
10:59:21 PM: GitHub - browserslist/browserslist: 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
10:59:28 PM: warning chunk styles [mini-css-extract-plugin]
10:59:28 PM: Conflicting order. Following module has been added:
10:59:28 PM: * css ./node_modules/css-loader??ref–13-oneOf-1-1!./node_modules/postcss-loader/src??postcss-3!./node_modules/sass-loader/dist/cjs.js??ref–13-oneOf-1-3!./src/assets/scss/components/_categoriesList.scss
10:59:28 PM: despite it was not able to fulfill desired ordering with these modules:
10:59:28 PM: * css ./node_modules/css-loader??ref–13-oneOf-1-1!./node_modules/postcss-loader/src??postcss-3!./node_modules/sass-loader/dist/cjs.js??ref–13-oneOf-1-3!./src/assets/scss/components/_bookCard.scss
10:59:28 PM: - couldn’t fulfill desired order of chunk group(s) component—src-pages-books-jswarning chunk styles [mini-css-extract-plugin]
10:59:28 PM: Conflicting order. Following module has been added:
10:59:28 PM: * css ./node_modules/css-loader??ref–13-oneOf-1-1!./node_modules/postcss-loader/src??postcss-3!./node_modules/sass-loader/dist/cjs.js??ref–13-oneOf-1-3!./src/assets/scss/components/_selectTags.scss
10:59:28 PM: despite it was not able to fulfill desired ordering with these modules:
10:59:28 PM: * css ./node_modules/css-loader??ref–13-oneOf-1-1!./node_modules/postcss-loader/src??postcss-3!./node_modules/sass-loader/dist/cjs.js??ref–13-oneOf-1-3!./src/assets/scss/components/_bookCard.scss
10:59:28 PM: - couldn’t fulfill desired order of chunk group(s) component—src-pages-books-jswarning chunk styles [mini-css-extract-plugin]
10:59:28 PM: Conflicting order. Following module has been added:
10:59:28 PM: * css ./node_modules/css-loader??ref–13-oneOf-1-1!./node_modules/postcss-loader/src??postcss-3!./node_modules/sass-loader/dist/cjs.js??ref–13-oneOf-1-3!./src/assets/scss/components/_catalog.scss
10:59:28 PM: despite it was not able to fulfill desired ordering with these modules:
10:59:28 PM: * css ./node_modules/css-loader??ref–13-oneOf-1-1!./node_modules/postcss-loader/src??postcss-3!./node_modules/sass-loader/dist/cjs.js??ref–13-oneOf-1-3!./src/assets/scss/components/_bookCard.scss
10:59:28 PM: - couldn’t fulfill desired order of chunk group(s) component—src-pages-books-jssuccess Building production JavaScript and CSS bundles - 6.972s
10:59:29 PM: success Building HTML renderer - 0.799s
10:59:30 PM: failed Building static HTML for pages - 0.455s
10:59:30 PM: error Building static HTML failed for path “/books/me-judith”
10:59:30 PM:
10:59:30 PM: 33 | <div className={‘sticky’}>
10:59:30 PM: 34 | {featuredImage && (
10:59:30 PM: > 35 |
10:59:30 PM: | ^
10:59:30 PM: 36 | )}
10:59:30 PM: 37 |
10:59:30 PM: 38 |
10:59:30 PM:
10:59:30 PM: WebpackError: TypeError: Cannot read property ‘localFile’ of null
10:59:30 PM:
10:59:30 PM: - book.js:35
10:59:30 PM: src/pages/templates/book.js:35:52
10:59:30 PM:
10:59:30 PM:
10:59:30 PM: not finished Generating image thumbnails - 16.529s
10:59:30 PM: error Command failed with exit code 1. (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
10:59:30 PM: info Visit yarn run | Yarn for documentation about this command.
10:59:30 PM: events.js:292
10:59:30 PM: throw er; // Unhandled ‘error’ event
10:59:30 PM: ^
10:59:30 PM: Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
10:59:30 PM: at process.target.send (internal/child_process.js:679:16)
10:59:30 PM: at reportSuccess (/opt/build/repo/node_modules/jest-worker/build/workers/processChild.js:83:11)
10:59:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
10:59:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
10:59:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
10:59:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
10:59:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
10:59:30 PM: at Promise._fulfill (/opt/build/repo/node_modules/bluebird/js/release/promise.js:673:18)
10:59:30 PM: at MappingPromiseArray.PromiseArray._resolve (/opt/build/repo/node_modules/bluebird/js/release/promise_array.js:127:19)
10:59:30 PM: at MappingPromiseArray._promiseFulfilled (/opt/build/repo/node_modules/bluebird/js/release/map.js:108:18)
10:59:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:609:26)
10:59:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
10:59:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
10:59:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12)
10:59:30 PM: at _drainQueue (/opt/build/repo/node_modules/bluebird/js/release/async.js:86:9)
10:59:30 PM: at Async._drainQueues (/opt/build/repo/node_modules/bluebird/js/release/async.js:102:5)
10:59:30 PM: Emitted ‘error’ event on process instance at:
10:59:30 PM: at internal/child_process.js:683:35
10:59:30 PM: at processTicksAndRejections (internal/process/task_queues.js:79:11) {
10:59:30 PM: code: ‘ERR_IPC_CHANNEL_CLOSED’
10:59:30 PM: }
10:59:30 PM:
10:59:30 PM: “build.command” failed
10:59:30 PM: ────────────────────────────────────────────────────────────────
10:59:30 PM:
10:59:30 PM: Error message
10:59:30 PM: Command failed with exit code 1: yarn build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
10:59:30 PM:
10:59:30 PM: Error location
10:59:30 PM: In Build command from Netlify app:
10:59:30 PM: yarn build
10:59:30 PM:
10:59:30 PM: Resolved config
10:59:30 PM: build:
10:59:30 PM: command: yarn build
10:59:30 PM: commandOrigin: ui
10:59:30 PM: environment:
10:59:30 PM: - INCOMING_HOOK_BODY
10:59:30 PM: - INCOMING_HOOK_TITLE
10:59:30 PM: - INCOMING_HOOK_URL
10:59:30 PM: publish: /opt/build/repo/public
10:59:30 PM: publishOrigin: ui
10:59:30 PM: plugins:
10:59:30 PM: - inputs: {}
10:59:30 PM: package: ‘@netlify/plugin-gatsby’
10:59:30 PM: Caching artifacts
10:59:30 PM: Started saving node modules
10:59:30 PM: Finished saving node modules
10:59:30 PM: Started saving build plugins
10:59:30 PM: Finished saving build plugins
10:59:30 PM: Started saving corepack cache
10:59:30 PM: Finished saving corepack cache
10:59:30 PM: Started saving yarn cache
10:59:33 PM: Finished saving yarn cache
10:59:33 PM: Started saving pip cache
10:59:33 PM: Finished saving pip cache
10:59:33 PM: Started saving emacs cask dependencies
10:59:33 PM: Finished saving emacs cask dependencies
10:59:33 PM: Started saving maven dependencies
10:59:33 PM: Finished saving maven dependencies
10:59:33 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)
10:59:33 PM: Started saving boot dependencies
10:59:33 PM: Finished saving boot dependencies
10:59:33 PM: Started saving rust rustup cache
10:59:33 PM: Finished saving rust rustup cache
10:59:33 PM: Started saving go dependencies
10:59:33 PM: Finished saving go dependencies
10:59:33 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:59:33 PM: Failing build: Failed to build site
10:59:33 PM: Finished processing build request in 1m48.848s