我在创建一个gatsby插件。在开发时,我没有收到任何错误或警告,但是我无法在graphiql (或http://localhost:8000/___graphql)中看到我的查询。 module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gats
我已经将gatsby-plugin-layout安装到我的项目文件中,创建了src/layouts/index.js,并将gatsby-plugin-layout添加到gatsby-config.js中。Gatsby应用程序编译并可以在开发服务器上服务,但是通过我的布局组件的console.log输出,我看到布局组件仍然在每个页面加载上重新挂载。我的目标是让布局组件在反应应用的过程中只挂载一次。
src/layouts/index.js
import React from "react"
import Header from "../components/header&
我对Gatsby,React和GraphQL还是个新手,所以我只是想在走错路之前和社区确认一下……
WooCommerce REST API (通过WordPress REST API)是否可能成为Gatsby的电子商务集成?如果是,是否可以使用GraphQL查询WooCommerce API (类似于使用gatsby-source-wordpress插件查询WordPress REST API )?仅仅使用WordPress REST API就可以完成这一切吗?
如果有人将WooCommerce与Gatsby集成在一起(或者知道Gatsby电子商务解决方案工作得更好),我很想了解它!
我在Gatsby中遇到了一个奇怪的错误,因为我添加了代码语法突出显示,所以我尝试托管发生的website.This。奇怪的是,当我在本地本地运行它时,它工作得非常好,但是当我使用Gatsby构建它时,它却失败了。(盖茨比云使用我的网站的github回购)
我得到的错误消息是:
There was a problem loading plugin /usr/src/app/www/node_modules/@gatsby-cloud-pkg/gatsby-plugin-preview/dist/index.js. Perhaps you need to install its package?
即使在gatsby配置文件中为gatsby hello world初学者项目添加了fa图标之后,它也无法工作。我尝试谷歌搜索,并在堆栈溢出搜索类似的问题,。但这没什么用否则我就错地方了。
请纠正我!!
盖茨比CONFIG.JS
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
siteMetadata: {
titl
我尝试在我的应用程序中运行"gatsby develop“,它会引发以下兼容问题,
我的节点版本是16.17.0,gatsby是4.24.1。我可以猜到,它说要升级到最新版本,我无法确定我需要使用哪个版本的盖茨比4.24.1?
有人指导我正确的解决方案,以了解兼容版本,并解决以下错误?
warn Plugin gatsby-transformer-remark is not compatible with your gatsby version
4.24.1 - It requires gatsby@^2.0.33
warn Plugin gatsby-plugi
我目前正在做一个Gatsby项目,该项目已经在使用Google Tag Manager来处理Google Analytics。我想把gatsby-plugin-guess-js整合到这个站点来帮助提高性能,但是如果不使用gatsby-plugin-google-analytics,我似乎无法做到这一点。
我们目前使用的是gatsby-plugin-google-tagmanager,它包含了我们的GTM ID,但这似乎不足以让guess-js发挥作用。
有没有人成功地实现了这一点,或者知道了这个问题的可能解决方案?
这是我在gatsby-config.js中的Google Tag Manage
最令人沮丧的是,我在早些时候就把它弄坏了,但是我用gatsby-plugin-sharp和gatsby-plugin-图片在我的主页上添加了一张照片,然后看到了这个错误:
Gatsby-plugin-sharp wasn't setup correctly in gatsby-config.js. Make sure you add it to the plugins array.
我不知道为什么..。我试过删除node_modules,package_lock.json,重新安装.除此之外,我还可以看出插件肯定在我的数组中,如果我在插件中添加未解决的选项,当插件加载时,它会问我关于它
在构建我的盖茨比网站时,我会得到以下错误。我尝试删除和重新安装npm,更新插件,删除(盖茨比)缓存,在盖茨比配置中使用siteUrl和各种设置。但我似乎无法摆脱这个错误。开发环境运行良好。
github:
**Error console log**
ERROR #11321 PLUGIN
"gatsby-plugin-sitemap" threw an error while running the onPostBuild lifecycle:
`siteUrl` does not exist on `siteMetadata` in the data returned