gatsbyjs / gatsby

The best React-based framework with performance, scalability and security built in.
https://www.gatsbyjs.com
MIT License
55.3k stars 10.31k forks source link

Gatsby-cli 2.12.63 and gatsby 2.24.7 won't build or start develop server #25887

Closed juanjoseluisgarcia closed 4 years ago

juanjoseluisgarcia commented 4 years ago

Description

After upgrading gatsby to 2.24.7 and gatsby-cli to 2.12.63it will not build or start the development sever

Steps to reproduce

Upgrade your gatsby with npm update or yarn upgrade. Create a new app with gatsby new test-app Type gatsby develop. You will get this stack:

prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: Cannot find module './LocalModuleDependency'
Require stack:
[stack]

How to Make a Minimal Reproduction: https://www.gatsbyjs.org/contributing/how-to-make-a-reproducible-test-case/

Expected result

What should happen? gatsby to build or start the development server

Actual result

stack shown above.

Environment


  System:
    OS: macOS 10.15.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 14.5.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.5 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 84.0.4147.89
    Firefox: 78.0.2
    Safari: 13.1.2
  npmPackages:
    gatsby: ^2.24.7 => 2.24.7 
    gatsby-background-image: ^1.1.1 => 1.1.1 
    gatsby-cli: ^2.12.63 => 2.12.63 
    gatsby-image: ^2.4.13 => 2.4.13 
    gatsby-plugin-canonical-urls: ^2.3.10 => 2.3.10 
    gatsby-plugin-catch-links: ^2.3.11 => 2.3.11 
    gatsby-plugin-google-analytics: ^2.3.12 => 2.3.12 
    gatsby-plugin-intl: ^0.3.3 => 0.3.3 
    gatsby-plugin-manifest: ^2.4.19 => 2.4.19 
    gatsby-plugin-material-ui: ^2.1.9 => 2.1.9 
    gatsby-plugin-offline: ^3.2.19 => 3.2.19 
    gatsby-plugin-react-helmet: ^3.3.10 => 3.3.10 
    gatsby-plugin-remove-generator: ^1.0.5 => 1.0.5 
    gatsby-plugin-sass: ^2.3.12 => 2.3.12 
    gatsby-plugin-sharp: ^2.6.20 => 2.6.20 
    gatsby-plugin-styled-components: ^3.3.10 => 3.3.10 
    gatsby-source-filesystem: ^2.3.20 => 2.3.20 
    gatsby-transformer-sharp: ^2.5.11 => 2.5.11 
  npmGlobalPackages:
    gatsby-cli: 2.12.63
herecydev commented 4 years ago

Unfortunately I couldn't reproduce. Can you push up what you have into a repo and I'll see if I can recreate?

juanjoseluisgarcia commented 4 years ago

Sure. I get the issue in this repo: test-app

juanjoseluisgarcia commented 4 years ago

This bug has just been fixed. As a solution please run yarn upgrade --latest and then gatsby develop