Closed shockw4ver closed 5 years ago
Now I found the way to resolve it, but how to extends the graphql-types is the new question...😅
I modified the graphql-types.d.ts
file, but still cannot query the new field.
I think that the starter assume that you have some tags, so if you add some tags into your article, it should works ;) (example -> https://github.com/fabien0102/gatsby-starter/blob/master/data/blog/2017-04-18--welcoming/index.md)
Otherwise you can just do:
const tags = props.data.tags ? props.data.tags.group : []
Note: This starter is not really up to date, I need to take some time to go the last gatsby version, but you know, time…
Thanks~ I did so to resolve it and made same changes at others place. Looking forward to enjoy the starter with new gatsby!🤓
Closing this issue. Works as designed. @shockw4ver if you disagree please comment.
I deleted three sample posts, and generator new one, and when I get into the
/blog/
, it errored meCannot read property 'group' of null
. Entire Error: