【发布时间】:2019-03-14 20:39:50
【问题描述】:
我正在使用 Gatsby graphyQl 设置 childImageSharp 分辨率质量。 当我运行 gatsby develop 时,出现此错误。
错误:GraphQLError:高度应为正整数,但 收到类型号的 414.17910447761193
我的图形查询将此作为其中的一部分。
localFile {
childImageSharp {
resolutions(height: 200, quality: 60) {
...GatsbyImageSharpResolutions_withWebp_noBase64
}
}
}
我正在传递一个正的高度值。任何人都知道为什么我会得到这个?
【问题讨论】:
标签: gatsby