GithubHelp home page GithubHelp logo

Comments (11)

ashfurrow avatar ashfurrow commented on August 10, 2024 2

I just experienced a similar error on a fresh build, with both Yarn and npm.

Here's the error log
npm start

> [email protected] start /Users/ash/bin/blog2/blog
> gatsby develop

success delete html and css files from previous builds — 0.013 s
success open and validate gatsby-config — 0.005 s
success copy gatsby files — 0.014 s
success onPreBootstrap — 0.419 s
success source and transform nodes — 0.183 s
success building schema — 0.260 s
success createLayouts — 0.009 s
success createPages — 0.032 s
success createPagesStatefully — 0.020 s
success onPreExtractQueries — 0.001 s
success update schema — 0.166 s
success extract queries from components — 0.358 s
success run graphql queries — 0.298 s
success write out page data — 0.003 s
success write out redirect data — 0.001 s
success onPostBootstrap — 0.001 s

info bootstrap finished - 3.569 s

error There was an error compiling the html.js component for the development server.

See our docs page on debugging HTML builds for help https://goo.gl/yL9lND


  Error: Module build failed: TypeError: fileSystem.statSync is not a function

  - exists.js:7 module.exports
    [blog]/[babel-loader]/lib/utils/exists.js:7:25

  - resolve-rc.js:13 find
    [blog]/[babel-loader]/lib/resolve-rc.js:13:9

  - index.js:111 Object.module.exports
    [blog]/[babel-loader]/lib/index.js:111:132


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `gatsby develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ash/.npm/_logs/2018-05-05T16_48_51_683Z-debug.log

I updated to use Node to 9.10.1 as suggested by @i001962 above and it now works. Thanks for the workaround! Let me know if I can help provide any other details.

from gatsby-starter.

mulyoved avatar mulyoved commented on August 10, 2024 1
rm -rf node_modules/
npm install
npm build

also fail

from gatsby-starter.

fabien0102 avatar fabien0102 commented on August 10, 2024

And with npm instead of yarn? (we have some weird packages conflicts between gatsby and storybook with yarn…)

from gatsby-starter.

fabien0102 avatar fabien0102 commented on August 10, 2024

@mulyoved Sorry for this, I need to investigate a little bit more to understand what happen and find a solution. You can also try to just clone this repo (without the gatsby-cli) and rm -rf .git if it's working.
Let me know if this solution is working for you :)

from gatsby-starter.

mulyoved avatar mulyoved commented on August 10, 2024

git clone and then yarn or npm install + build also didn't work, same failures

from gatsby-starter.

fabien0102 avatar fabien0102 commented on August 10, 2024

Oki… for the record, which os and node version do you use?

from gatsby-starter.

mulyoved avatar mulyoved commented on August 10, 2024

Windows
node 8.10.0

from gatsby-starter.

sielay avatar sielay commented on August 10, 2024

@mulyoved Had the same issues. For starters remove implicitly from tsconfig.json. Code from starter should work. Problems start when you try to add other dependencies and typescript, webpack and few other packages start to rage with an incompatible version. Over here you can find some trails and errors trying to find the issue #55

from gatsby-starter.

i001962 avatar i001962 commented on August 10, 2024

Same issue here FWIW

from gatsby-starter.

i001962 avatar i001962 commented on August 10, 2024

@mulyoved FWIW I updated node to v9.10.1 then a build from a fresh install worked as expected.

from gatsby-starter.

fabien0102 avatar fabien0102 commented on August 10, 2024

Should be fixed, please tell if it's still broken ;) (I'm just cleaning a bit our issues ^^)

from gatsby-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.