TypeError:无法读取null的属性'childImageSharp'

时间:2019-07-02 13:12:54

标签: reactjs gatsby

<Link to={`/product/${x.node.handle}/`}>
  <Img
    fluid={x.node.images[0].localFile.childImageSharp.fluid}
    alt={x.node.handle} 
  />
</Link>

引发错误:TypeError: Cannot read property 'childImageSharp' of null

0 个答案:

没有答案