Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatsby-cli@2.12.35 breaks the Gatsby #24461

Closed
jayjayzheng opened this issue May 25, 2020 · 6 comments
Closed

Gatsby-cli@2.12.35 breaks the Gatsby #24461

jayjayzheng opened this issue May 25, 2020 · 6 comments
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@jayjayzheng
Copy link

jayjayzheng commented May 25, 2020

Description

After installed latest gatsby-cli@2.12.35, then gatsby not working any more. here is the error -

/usr/local/lib/node_modules/gatsby-cli/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: No valid exports main found for '/usr/local/lib/node_modules/gatsby-cli/node_modules/@urql/core'
    at resolveExportsTarget (internal/modules/cjs/loader.js:625:9)
    at applyExports (internal/modules/cjs/loader.js:502:14)
    at resolveExports (internal/modules/cjs/loader.js:551:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:657:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27)
    at Function.Module._load (internal/modules/cjs/loader.js:855:27)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/gatsby-cli/node_modules/urql/dist/urql.js:1:12)
    at Module._compile (internal/modules/cjs/loader.js:1144:30) {
  code: 'MODULE_NOT_FOUND'
}

Steps to reproduce

npm i -g gatsby-cli

gatsby develop

Actual result

gatsby command not working

Environment

gatsby-cli@2.12.35
npm: 6.14.5
node: 13.6

@jayjayzheng jayjayzheng added the type: bug An issue or pull request relating to a bug in Gatsby label May 25, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 25, 2020
@jayjayzheng
Copy link
Author

jayjayzheng commented May 25, 2020

I had to rollback to 2.12.29 to have it work. here is the gatsby info -

 System:
    OS: macOS 10.15.4
    CPU: (8) x64 Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 13.6.0 - /usr/local/bin/node
    npm: 6.14.5 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 81.0.4044.113
    Safari: 13.1
  npmPackages:
    gatsby: ^2.22.1 => 2.22.1
    gatsby-background-image: ^1.1.1 => 1.1.1
    gatsby-image: ^2.4.4 => 2.4.4
    gatsby-plugin-google-analytics: ^2.3.1 => 2.3.1
    gatsby-plugin-guess-js: ^1.3.2 => 1.3.2
    gatsby-plugin-intl: ^0.3.3 => 0.3.3
    gatsby-plugin-layout: ^1.3.1 => 1.3.1
    gatsby-plugin-manifest: ^2.4.6 => 2.4.6
    gatsby-plugin-material-ui: ^2.1.8 => 2.1.8
    gatsby-plugin-netlify: ^2.3.3 => 2.3.3
    gatsby-plugin-netlify-cache: ^1.2.0 => 1.2.0
    gatsby-plugin-react-helmet: ^3.3.1 => 3.3.1
    gatsby-plugin-resolve-src: ^2.1.0 => 2.1.0
    gatsby-plugin-robots-txt: ^1.5.0 => 1.5.0
    gatsby-plugin-sass: ^2.3.1 => 2.3.1
    gatsby-plugin-sharp: ^2.6.6 => 2.6.6
    gatsby-plugin-sitemap: ^2.4.2 => 2.4.2
    gatsby-source-filesystem: ^2.3.5 => 2.3.5
    gatsby-transformer-sharp: ^2.5.2 => 2.5.2
  npmGlobalPackages:
    gatsby-cli: 2.12.29

@t2ca
Copy link
Contributor

t2ca commented May 25, 2020

Works fine here.
Gatsby CLI version: 2.12.35

@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 26, 2020
@LekoArts
Copy link
Contributor

As per other issues #22558, #23214, #23763, #23378 - please update your packages to the latest versions, maybe delete the package-lock/yarn.lock files and node_modules folder beforehand.

The CLI is working fine for me on the mentioned version.

@ergunpp
Copy link

ergunpp commented Jun 14, 2020

How to best update gatsby and gatsby cli for a site?

@TomPeak
Copy link

TomPeak commented Jul 9, 2020

I did it by the book … got same error!

Everything uptodate!
latest nvm npm gatsby-cli

@zlydenko
Copy link

zlydenko commented Oct 5, 2020

same error here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

6 participants