我试图用盖茨比的StaticImage为我的组件编写一本故事书,但这最终没有呈现出来,控制台中的错误伪装成警告:
Please ensure that "gatsby-plugin-image" is included in the plugins array in gatsby-config.js, and that your version of gatsby is at least 2.24.78
(anonymous) @ static-image.server.tsx:52
我想知道是否有一种在盖茨比之外使用StaticImage呈现组件的方法?
组件是微不足道的:
我试图用Auth0和Redux实现盖茨比
由于Auth0和Redux都需要在gatsby-browser.js中使用wrapRootElement,我如何将两者合并才能在盖茨比中成功地使用它们?提前感谢
gatsby-browser.js
// used by Auth0
export const wrapRootElement = ({ element }) => {
return <SessionCheck>{element}</SessionCheck>
}
// used by Redux
export { default as wrapRootEl
我有一个盖茨比网站,已经顺利运行了3个月的在线。截至7月24日星期五,我已经开始收到以下结果,用户只看到一个空白屏幕。
This is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues
at h (gatsby-browser-entry.js:77)
at O9Ll.t.default (buybike.js:52)
at
试图在netlify上部署我的盖茨比应用程序。基本上,我为一些特定的目的添加了一些jQuery,但是当我上传它时,我得到了ff错误:
11:52:55 AM: failed Building static HTML for pages - 5.342s
11:52:55 AM: error Building static HTML failed
11:52:55 AM:
11:52:55 AM: 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
11:52:55 AM: 5
我正试图用strapi和gatsby获得一个快速的原型。所有的初学者似乎都不起作用,所以我在strapi网站上尝试了快速启动的方法。
首先,我遵循了这个快速启动指南,以获得strapi后端。
然后这个让盖茨比跑了。
并且遇到了两个错误。
"gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
Request failed with status code 403
...
warn The gatsby-source-strapi plugin has generated n
我正在尝试使用组件的onClick事件重定向到页面。因为我已经安装了react gatsby,所以可以从gatsby-link使用Link来重定向吗? import React from 'react';
import { OverflowMenu, OverflowMenuItem } from '../Overflow';
import Link from 'gatsby-theme-carbon/src/components/Link';
class OverflowComponent extends React.Component
我正在尝试在我的Gatsby项目中使用react-gtm-module,我使用库@loadable/component在我的组件中加载了这个模块。因此,当我运行gatsby develop时,我得到错误TagManager.initialize is not a function 代码如下: import loadable from '@loadable/component';
const TagManager = loadable(() => import('react-gtm-module'));
export const setupGtm =
我已经安装了npm包引导程序+将其导入到gatsby-browser.js文件中(见下文)。引导CSS可以工作,但问题是我一直在控制台中获取此错误消息。我做错了什么?
可能出现的问题:
我需要安装react引导吗?
另一个盖茨比插件?
我是不是错过了额外的盖茨比设置?
错误:
[Error] Not allowed to load local resource: blob://nullhttp//localhost:8000/bootstrap.min.css.map
[Error] Not allowed to request resource
[Error] Canno
我试图在Gatsby的索引页面上显示我所有满意的博客帖子,但是我得到了一个错误。 我正在gatsby-node.js上创建帖子页面,如下所示: const path = require(`path`)
// Log out information after a build is done
exports.onPostBuild = ({ reporter }) => {
reporter.info(`Your Gatsby site has been built!`)
}
// Create blog pages dynamically
exports.createPages =
我想通过GraphiQl从网页上的一个特定文件夹中查询多个图像。
我尝试过多种方法,但我无法显示图像。不过,我可以获得一个图像显示(没有映射),但不是多个。
我还可以在网页上显示图像的id或底部,以显示所有这些内容的列表。但是,如果我尝试使用实际的图像,就会在控制台中得到以下错误消息:
Warning: Failed prop type: The prop `alt` is marked as required in `J`, but its value is `undefined`.
at J (webpack-internal:///./node_modules/gatsby-pl
我在构建我的gatsby项目时遇到了麻烦。开发工作正常,但当我尝试构建时,我得到了一个错误:
ERROR #95313
Building static HTML failed for path "/Components/Layout/Footer/"
See our docs page for more info on this error: https://gatsby.dev/debug-html
7 |
8 | if (isProduction) {
9 | throw new Error(prefix);
| ^
10
我有一个GatsbyJS项目,我试图使用钩子,但是我得到了这个错误。
我做的第一件事是删除node_modules文件夹和package.json.lock文件,然后再次安装npm,但没有工作。
查看反应文件:-
--据我所知,您可能有与DOM不匹配的版本,并对DOM作出反应。据我所知,我没有错误匹配的版本。
,您可能违反了Hooks.的规则--据我所知,我使用的是组件
--您可能在同一个应用程序中有多个app副本。我试过了,正如React文档所显示的那样:-
// Add this in node_modules/react-dom/index.js
window.React1 = re
我试图建立一个网站在盖茨比风格的风格-组件。
运行gatsby develop可以很好地显示页面,但是当我尝试构建页面时,我会得到以下错误:
误差
Building static HTML failed for path "/Page/"
See our docs page for more info on this error: https://gatsby.dev/debug-html
16 | font-family: Lack;
17 | text-align: center;
> 18 | background: ${(pr