dschau / gatsby-blog-starter-kit Goto Github PK
View Code? Open in Web Editor NEWA simple starter kit for a static blog created with Gatsby
Home Page: https://gatsby-blog-starter-kit.netlify.com/
License: MIT License
A simple starter kit for a static blog created with Gatsby
Home Page: https://gatsby-blog-starter-kit.netlify.com/
License: MIT License
Are these tildes necessary? They are forcing you to use an older version of Gatsby.
Thanks
After creating a project via gatsby new blog https://github.com/dschau/gatsby-blog-starter-kit
and starting it with npm start
, I get the following output:
► npm start
> [email protected] start /Users/frankeg/dev/blog
> npm run develop
> [email protected] develop /Users/frankeg/dev/blog
> gatsby develop
The above error occurred in the <StoreStateProvider> component:
in StoreStateProvider
in App
React will try to recreate this component tree from scratch using the error boundary you provided, App.
Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] develop: `gatsby develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] develop 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/frankeg/.npm/_logs/2019-11-01T22_03_47_665Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run 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/frankeg/.npm/_logs/2019-11-01T22_03_47_683Z-debug.log
I suppose this has to do with a new version of react, but cant exactly point out what it is. could you take a look at this?
Hi,
I set up a new project by using the gatsby-blog-starter-kit. Everything was generated by the starter.
But:
After running gatsby develop
I'm always getting this warning:
warning There are conflicting field types in your data. GraphQL schema will omit those fields.
SitePluginConnection.packageJson.author:
Does someone know why? What happened?
Add some basic tests with snapshots, jest, enzyme, etc.
sharp compilation fails on Travis CI due to the Node.js version probably.
Followed tutorial in gatsby docs, but kept getting an error. cloned this repo and updated deps one at a time to trace it, and sure enough, updating gatsby-source-filesystem
to latest breaks it
error Plugin default-site-plugin returned an error
Error:
success createPages — 0.018 s
success createPagesStatefully — 0.016 s
GraphQL Error Unknown field `allMarkdownRemark` on type `RootQueryType`
file: /home/bmp/code/gatsby-admitbrain/src/pages/index.js
1 |
2 | query IndexQuery {
> 3 | allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___date] }) {
| ^
4 | edges {
5 | node {
6 | excerpt(pruneLength: 250)
7 | id
8 | frontmatter {
9 | title
10 | date(formatString: "MMMM DD, YYYY")
11 | path
12 | }
13 |
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
gatsby
, gatsby-link
, gatsby-plugin-catch-links
, gatsby-plugin-manifest
, gatsby-plugin-offline
, gatsby-plugin-react-helmet
, gatsby-plugin-sharp
, gatsby-remark-images
, gatsby-source-filesystem
, gatsby-transformer-remark
)react
, react-dom
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
gatsby
, gatsby-link
, gatsby-plugin-catch-links
, gatsby-plugin-manifest
, gatsby-plugin-offline
, gatsby-plugin-react-helmet
, gatsby-plugin-sharp
, gatsby-remark-images
, gatsby-source-filesystem
, gatsby-transformer-remark
)react
, react-dom
)package.json
gatsby ~2.0.0-beta.69
gatsby-link 2.0.0-beta.4
gatsby-plugin-catch-links 2.0.2-beta.2
gatsby-plugin-manifest ~2.0.2-beta.3
gatsby-plugin-offline ~2.0.0-beta.6
gatsby-plugin-react-helmet 3.0.0-beta.3
gatsby-plugin-sharp 2.0.0-beta.5
gatsby-remark-images 2.0.1-beta.6
gatsby-source-filesystem 2.0.1-beta.3
gatsby-transformer-remark 2.1.1-beta.3
react ~16.3.0
react-dom ~16.3.0
react-helmet ~5.2.0
react-icons ~2.2.5
gh-pages 1.1.0
prettier 1.10.2
.travis.yml
I just cloned the repo and I am getting the error in the title:
Uncaught TypeError: Cannot read property 'allMarkdownRemark' of undefined at new Index (index.js:9)
The above error occurred in the <Index> component:
Uncaught TypeError: Cannot read property 'allMarkdownRemark' of undefined at new Index (index.js:9)
I installed with yarn.
Hi,
This is easily one of the most useful articles and resources on how to practically use GatsbyJS. Thank you so much for sharing this.
I was trying out how to host the www.domain.com/blog
but still have other pages like www.domain.com/about
and landing page in tact.
I tried changing the PathPrefix in gatsby-config.js
but that's not working. Any help or guidance is greatly appreciated!
I get the following error after cloning the kit and running yarn
.
I have to install yarn add gatsby-plugin-sharp
manually otherwise i get some sharp.node errors.
One I run yarn start
i get the following.
D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit (master) (@dschau/[email protected])
λ yarn start
yarn start v0.27.5
warning ....\package.json: No license field
$ npm run develop
@dschau/[email protected] develop D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit
gatsby develop
success open and validate gatsby-config.js — 0.007 s
One or more of your plugins have changed since the last time you ran Gatsby. As
a precaution, we're deleting your site's cache to ensure there's not any stale
data
success copy gatsby files — 0.030 s
success source and transform nodes — 0.168 s
success building schema — 0.165 s
⠁ UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.