【发布时间】:2020-07-25 08:29:16
【问题描述】:
childImageSharp {
fixed(width: 320, height: 320, cropFocus: ENTROPY) {
...GatsbyImageSharpFixed
}
fluid(maxWidth: 800, quality: 90) {
...GatsbyImageSharpFluid
presentationWidth
}
}
1:23:36 AM: error There was an error in your GraphQL query:
1:23:36 AM: Unexpected error value: "failed to process https://images.prismic.io/{MYURL}/9164c1cd-2aed-4955-bbf5-23ea20861ac4_565.jpg?auto=compress,format\nError: ENOENT: no such file or directory, open '/opt/build/repo/.cache/caches/gatsby-source-prismic-graphql/tmp-ced6c46e221e339dcd73ea911900fbca.jpg'"
似乎插件首先需要从 prismic 下载图像,但查询在下载图像之前运行,并且在运行生产构建时抛出上述错误。知道如何解决这个问题吗?
【问题讨论】:
-
我有同样的错误。但它第一次出现是在一周前左右,而不是之前。奇怪
标签: gatsby prismic.io