Closed DannyAllegrezza closed 4 years ago
I can confirm unable to build the project. I installed with yarn and updated packages. I was able to pass the the point that is reported to hang at after the updated packages, however once building pages an error is thrown:
info bootstrap finished - 5.565s
gatsby-plugin-purgecss: Only processing /clones/dannyallegrezza.com/src/components/all.sass
success Building production JavaScript and CSS bundles - 80.499s
success run page queries - 0.026s - 6/6 228.48/s
gatsby-plugin-purgecss:
Previous CSS Size: 185.05 KB
New CSS Size: 18.60 KB (-89.95%)
Removed ~166.44 KB of CSS
[ ] 0.032 s 0/38 0% Building static HTML for pages
/nodejs/14.4.0/.npm/lib/node_modules/gatsby-cli/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
TypeError: Unexpected response from worker: undefined
at ChildProcessWorker.onMessage (/clones/dannyallegrezza.com/node_modules/jest-worker/build/workers/ChildProcessWorker.js:257:15)
at ChildProcess.emit (events.js:315:20)
at emit (internal/child_process.js:906:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
{
childImageSharp: {
fluid: {
// more image data, followed by cms content nodes
Someone else chimed in on Discord with this exact error issue(yoga-layout-prebuilt
and jest-worker
). They had success by reverting their lockfile apparently.
I removed node_modules
from my own current project as well as my yarn lock file, pulled in packages again and did gatsby build
. Worked fine. Did not work with the project provided here, so it's presumably a bad/incompatible package.
Environment if useful to anyone:
gatsby info --clipboard
System:
OS: Linux 5.4 Manjaro Linux
CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Shell: 5.0.16 - /bin/bash
Binaries:
Node: 14.4.0 - ~/.asdf/installs/nodejs/14.4.0/bin/node
Yarn: 1.22.4 - ~/.asdf/installs/nodejs/14.4.0/.npm/bin/yarn
npm: 6.14.5 - ~/.asdf/installs/nodejs/14.4.0/bin/npm
Languages:
Python: 3.8.2
Browsers:
Firefox: 76.0.1
npmPackages:
gatsby: ^2.23.3 => 2.23.7
gatsby-image: ^2.4.7 => 2.4.7
gatsby-plugin-sharp: ^2.6.11 => 2.6.12
gatsby-plugin-styled-components: ^3.3.4 => 3.3.4
gatsby-source-filesystem: ^2.3.11 => 2.3.12
gatsby-transformer-json: ^2.4.5 => 2.4.5
gatsby-transformer-sharp: ^2.5.5 => 2.5.5
npmGlobalPackages:
gatsby-cli: 2.12.43
Warnings about outdated dependencies in gatsby when pulling in packages:
info No lockfile found.
[1/4] Resolving packages...
warning gatsby > babel-plugin-add-module-exports > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
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.
warning gatsby > @babel/polyfill > 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.
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.
warning gatsby > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning gatsby > babel-plugin-add-module-exports > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning gatsby > eslint-plugin-graphql > graphql-config > graphql-import@0.7.1: GraphQL Import has been deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-import for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
warning gatsby > gatsby-cli > yurnalist > babel-runtime > 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.
warning gatsby > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning gatsby > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning gatsby > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning gatsby > gatsby-cli > gatsby-recipes > graphql-tools > @graphql-tools/relay-operation-optimizer > relay-compiler > fbjs > 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.
warning gatsby-plugin-sharp > probe-image-size > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "gatsby > @pmmmwh/react-refresh-webpack-plugin@0.3.3" has incorrect peer dependency "react-refresh@^0.8.2".
warning "gatsby > @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".
warning " > styled-components@5.1.1" has unmet peer dependency "react-is@>= 16.8.0".
warning " > styled-modern-normalize@0.2.0" has incorrect peer dependency "styled-components@^2.0.0 || ^3.2.6 || ^4.1.2".
@polarathene can you try upgrading to gatsby@2.23.7
we fixed at least one case of Unexpected response from worker: undefined
there
@pieh successful build!
I guess that happened while troubleshooting with the 2nd user on Discord as it just started working for them and we had no clue why :sweat_smile:
Okay, going to close this. Huge thank you the Gatsby Discord community and @polarathene for the troubleshooting help! It seems like the issue was likely related to my package-lock.json
lockfile getting in some kind of weird state. The fix ended up being:
.cache
and node_modules
folders were gone)package-lock.json
npm outdated
and npm-check -u
)It is hard to identify the direct culprit, but ultimately, this seemed to help. I suspect it might have had to do with gatsby-plugin-netlify-cms
getting bumped to v4 from v3. For anyone interested, the diff is here:
https://github.com/DannyAllegrezza/dannyallegrezza.com/pull/10/files
Hi all!
First off, I want to say I am huge fan of Gatsby and promise I spent many, many hours Googling and searching before resorting to opening this issue 😁. I have a personal Gatsby + Netlify blog which I have built off of the gatsby-starter-netlify-cms template. NOTE: I am still using Netlify CMS v3.
Description
The build fails when attempting to execute
gatsby build
.gatsby develop
works perfectly. It appears to be dying on the "Building production JavaScript and CSS bundles" step. Since I use Netlify, my production build logs are public and give me an easy way to try and bisect any changes that could have caused this issue.View the full log here - https://app.netlify.com/sites/cocky-jones-987d7f/deploys/5eeb7d2a167a9b3d4238f66a
I am at a loss at this point. The issue seemingly was correlated with my attempt to add Prism.js to my site in this commit https://github.com/DannyAllegrezza/dannyallegrezza.com/commit/4cbb404004d5a44f2d83e3c5f3ba2f4afbdc5a96 If you look at the Deploy log (https://app.netlify.com/sites/cocky-jones-987d7f/deploys/5e6ee69b93e97200088d5ecb) you'll see that this is the first time this error popped up. I reverted things and the problem persists 😭😭😭
I figure either I uploaded bad data/image, made a bad component (or graphql query) or something similar so I have branched back 10+ commits, cleared the
node_modules
folder, fresh npm install followed bygatsby build
and the problem persists. This seemingly just came out of nowhere and I confirmed that this problem happens also on OSX (13 MBP).The repo is located here: https://github.com/DannyAllegrezza/dannyallegrezza.com - feel free to clone it and try to perform
gatsby build
I have tried a ton of things at this point:
Windows 10
Node:v12.16.1
NPM:6.13.4
gastby-config.js
gatsby-node.js
package.json
Steps to reproduce
Clone https://github.com/DannyAllegrezza/dannyallegrezza.com
gatsby build
Expected result
Build should run without errors.
Environment