腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Gatsby
无法
读取
null
的
属性
“
childImageSharp
”
javascript
、
node.js
、
gatsby
、
gatsby-image
我正在与
gatsby
一起构建我
的
第一个项目,但找不到解决图像问题
的
方法。我
的
代码在这里here 当我尝试运行
gatsby
build时,我得到了这个错误: failed Building static HTML for pages - 10.907s > 29 | <Img sizes={node.frontmatter.screenshot.
浏览 9
提问于2020-09-22
得票数 1
2
回答
Gatsby
-
无法
读取
属性
'
childImageSharp
‘
的
null
reactjs
、
graphql
、
gatsby
、
gatsby-image
我得到了这个错误,甚至我
的
查询在GraphQL资源管理器中给了我一个正确
的
结果。这就是我迄今为止尝试过
的
: --- title: Hello World - from mdx!ti
浏览 4
提问于2021-01-03
得票数 1
3
回答
TypeError:
无法
读取
null
的
属性
“
childImageSharp
”
gatsby
、
gatsby-image
我正在尝试使用
Gatsby
图像,但获取
无法
读取
null
的
属性
'
childImageSharp
‘。我找不到哪里出了错。Topsection.js是一个under组件。仍然收到错误,
无法
设法解决它。我已经附上了所有的文件。请帮我解决一下。= useStaticQuery(graphql` featureimg: file(relativePath: { eq: "image.jpg" }) {
浏览 39
提问于2020-10-24
得票数 1
回答已采纳
1
回答
Gatsby
- GraphQL图像未定义
javascript
、
reactjs
、
graphql
、
gatsby
我试图使用
Gatsby
Image将图像延迟加载到CSS网格中。我一直收到错误-“
无法
读取
未定义
的
属性
'person‘”。import React from "react"import Img from "
gatsby
-image"
浏览 0
提问于2020-05-12
得票数 0
1
回答
无法
读取
未定义
的
属性
“”
childImageSharp
“”
javascript
说明我遇到一个本地错误,开发
无法
读取
未定义
的
'
childImageSharp
‘
属性
。运行:
gatsby
develop实际结果实际结果为未定义
的
childImageSha
浏览 11
提问于2019-10-22
得票数 1
1
回答
在markdown
Gatsby
中创建缩略图
reactjs
、
graphql
、
markdown
、
gatsby
我正在遵循教程为我
的
盖茨比网站上
的
文章列表创建缩略图。} from "
gatsby
" slug excerpt } }但我明白: TypeError:
无法
读取
属性
'
childImageSharp
‘
的
null
。我<
浏览 4
提问于2020-03-06
得票数 0
回答已采纳
1
回答
在盖茨比(
Gatsby
)中,如何将相对路径文件传递给也在提取查询
的
模板?
graphql
、
gatsby
、
gatsby-image
在盖茨比(
Gatsby
)中,我编写了一个post模板:import React from 'react' } title } }export default singlePost 在我
的
gatsby
-node.jsmeatball fatback, andouille drums
浏览 8
提问于2021-02-12
得票数 2
回答已采纳
1
回答
找不到盖茨比图像
reactjs
、
gatsby
、
gatsby-image
因此,我到处乱搞,创建一个降价
的
博客,由于某种原因,我
无法
让图片工作。
Gatsby
-config.js '
gatsby
-plugin-image', '
gatsby
-transformer-sharp', resolve: '
gatsby
-source-filesystem',
浏览 1
提问于2021-12-06
得票数 0
回答已采纳
2
回答
带有
gatsby
图像
的
机载
gatsby
源插件
gatsby
、
airtable
所以我用盖茨比源-空气表从我
的
飞机上提取图像。在gastby中,我将附件列映射为filenode:在GraphiQL中,
gatsby
图像插件似乎正在处理以下查询:airtable(tableeq: "test-1"}) { image {
childImageSharp
然而,当我尝试在
gatsby
浏览 0
提问于2018-10-05
得票数 0
回答已采纳
1
回答
如何用Gatbsy图像在GraphQL中映射我
的
默认导出?
reactjs
、
graphql
、
gatsby
、
graphql-js
、
gatsby-image
我想映射我
的
导出在GraphQL,而不是重复我
的
图像3次,检查我
的
代码,以了解我。/images/recent-game/3.jpg"), ]import BackgroundImage from "
gatsby
-background-image"const getD
浏览 4
提问于2020-02-10
得票数 0
回答已采纳
2
回答
在netlify中构建时出错(使用
gatsby
和strapi
的
web应用程序)
npm
、
gatsby
、
netlify
、
strapi
要重新创建它,您可以克隆我
的
分支github链接:- 我正在将我
的
strapi部署到heroku。当我在本地运行我
的
项目时,我没有得到任何错误,它运行得很流畅,当我把同样
的
东西推到github和strapi上时,尝试构建它是失败
的
。10:55:49 AM: npm ERR!Failed a
浏览 1
提问于2020-12-29
得票数 1
2
回答
当容器变成flex容器时图像消失
flexbox
、
gatsby
我有一个用
Gatsby
版本2制作
的
页面,我想在一个flexbox容器中用
gatsby
-image制作组件。当我删除display: flex;
属性
时,图像就会出现,当容器是flex容器时,图像就会消失。我还尝试在容器上设置flex-direction: colum
浏览 40
提问于2019-07-08
得票数 12
回答已采纳
1
回答
Gatsby
图像TypeError:
无法
读取
未定义
的
属性
“”footerHeart“”
graphql
、
gatsby
、
gatsby-image
我正在尝试在
gatsby
应用程序中显示一个小图像,但是,我
无法
找出这里
的
错误。代码 import React from "react"import { graphql } from "
gatsby
" <div> <h1>Hello
gatsby
-image<
浏览 15
提问于2020-10-25
得票数 0
1
回答
GatsbyImage在从WordPress
的
ACF库查询图像时不工作
wordpress
、
gatsby
、
advanced-custom-fields
我正在WordPress中使用图片库ACF,我
的
console.log证明了我
的
查询和组件能够准确地获取数据,但是,图片库图像在本地或生产版本中都不会显示在我
的
页面上。有人能帮我弄清楚吗?ACF_GalleryPage { id localFile {
childImageSharp
{data.wpPage.ACF_GalleryPage.gallery.map(localFile =&g
浏览 2
提问于2022-08-27
得票数 1
1
回答
函数前面的导出模块
javascript
、
ecmascript-6
、
graphql
、
gatsby
我正在用GatsbyJS开发一个应用程序,export正在开发我
的
GraphQL片段之一,如下所示:I import并将squareImage用作如下内容:import { useStaticQuery, graphql } from '
gatsby
} alt="nFront mobile developm
浏览 1
提问于2019-04-01
得票数 3
回答已采纳
2
回答
Gatsby
开发命令运行,但
gatsby
构建给出错误
javascript
、
node.js
、
reactjs
、
graphql
、
gatsby
我使用
gatsby
-node.js文件动态创建页面 let allProducts = result.data.allProducts.edges path/src/pages/product.js'), }) })
Gatsby
develop运行得很好,但当我执行
gatsby
构建时,它显示错误为页面生成静态HTML失败时出错 有关调试HTML构建
的
帮助https:
浏览 42
提问于2019-01-28
得票数 0
回答已采纳
1
回答
在
gatsby
中使用featureimage
gatsby
我想在我
的
博客帖子中显示featuredImages。我
的
前额看起来像这样:title: My pst with a feature imagedescription: "Some":
null
} },} 这不是我所期待
的
。我希望在这里得到我
的
图像数据...同样,我在控制台(在开发
浏览 3
提问于2021-05-16
得票数 1
1
回答
如何向GraphQL文件查询添加变量
graphql
、
gatsby
我正在使用
gatsby
-image插件在我
的
Gatsby
站点上显示图像。在我
的
GraphQL查询中,我希望能够将一个变量传递给relativePath参数,因为这个查询(在父组件中)正在为许多需要图像
的
组件运行。不过,我似乎想不出怎么做。...useStaticQuery(graphql` file(relativePath: {eq: "talent.png"}) {
浏览 42
提问于2019-08-10
得票数 1
1
回答
如何获取WordPress Wesitelogo
javascript
、
graphql
、
gatsby
、
gatsby-image
、
gatsby-plugin
我是盖茨比
的
新手。所以,我想在WordPress管理中定义我
的
网站徽标。下面是我是如何做到
的
: `import React from 'react';import styled from'styled-components'; const SiteInfo
浏览 13
提问于2020-11-27
得票数 0
回答已采纳
1
回答
GraphQL
无法
查询字段\"
childImageSharp
\“,尽管该字段在graphiql上可用
graphql
、
gatsby
我收到这个错误“
无法
查询类型"StrapiHomesGalleryImageFormatsMedium”上
的
字段"
childimagesharp
“为我挑选
的
任何儿童menu变量,即使他们在左边
的
菜单上是可选
的
我不明白为什么在其他一切都正常
的
情况下它是不可查询
的
。 ? 应用程序代码- import React from "react" import { graphql, Link } from "
浏览 12
提问于2020-12-07
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
一次性理解JavaScript原型链
MySQL创建、操纵表以及数据库引擎
自己手写一个Mybatis框架
JDBC连接MYSQL数据库教程
NET Standard FreeSql v0.0.9功能预览
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券