Comments (11)
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.
rm -rf node_modules/
npm install
npm build
also fail
from gatsby-starter.
And with npm instead of yarn? (we have some weird packages conflicts between gatsby and storybook with yarn…)
from gatsby-starter.
@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.
git clone and then yarn or npm install + build also didn't work, same failures
from gatsby-starter.
Oki… for the record, which os and node version do you use?
from gatsby-starter.
Windows
node 8.10.0
from gatsby-starter.
@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.
Same issue here FWIW
from gatsby-starter.
@mulyoved FWIW I updated node to v9.10.1 then a build from a fresh install worked as expected.
from gatsby-starter.
Should be fixed, please tell if it's still broken ;) (I'm just cleaning a bit our issues ^^)
from gatsby-starter.
Related Issues (20)
- Cannot read tags group. HOT 4
- Create branch for Gatsby v2 HOT 12
- There are conflicting field types in your data. GraphQL schema will omit those fields. HOT 1
- Tags-Page.tsx template and blog.tsx page - corner case HOT 1
- Next branch error eslint-config-react-app missing HOT 3
- error GraphQL Error Unknown field `responsiveResolution` on type `ImageSharp` HOT 2
- how to remove disqus comment section with facebook comments
- what goes in siteMetaData googleVerification HOT 2
- Move `next` to `master`, move current `master` to `v1` HOT 2
- Repo description still says V1 instead of V2 HOT 1
- gatsby-browser and gatsby-ssr need to be Javascript HOT 1
- Allot of vulnerabilities in this repo HOT 2
- Styles from styled components not loading in production, SSR issue?
- Not work with node v11.11.0 && npm v6.7.0 && gatsby v2.4.10 HOT 1
- npm ERR! notarget No matching version found for gatsby@next HOT 3
- License? HOT 1
- Create a new site fails HOT 2
- [Suggestion] replace storybook-readme with Docs Addon HOT 1
- [Idea][Feature Request] Netlify CMS?
- Creating or overriding semantic-ui themes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-starter.