fabien0102 / gatsby-starter

Gatsby 2.0 starter with typescript and many cools dev tools
386 stars 99 forks source link

using author name, not id, as name, and fix author's name in "more post" #33

Closed truongsinh closed 6 years ago

fabien0102 commented 6 years ago

Strange error in netlify

21 |   const recents = props.data.recents.edges
  22 |     .map(({ node }) => {
> 23 |       const recentAvatar = node.frontmatter.author.avatar.children[0] as ImageSharp;
     |                                                                   ^
  24 |       const recentCover = node.frontmatter.image.children[0] as ImageSharp;
  25 |       const extra = (
  26 |         <Comment.Group>

  WebpackError: Cannot read property 'children' of null

I’m trying to build it in local to have more information