我使用情感在我的项目中制作样式组件,现在它给我带来了问题。我是这样安装的:
npm i @emotion/react @emotion/styled gatsby-plugin-emotion
例如,如果我想在Header组件中使用它,我会这样做:
import React from 'react';
import { Link } from 'gatsby';
import Navegacion from './navegacion';
import { jsx, css } from '@emotion/react';
co
我正在尝试使用Wordpress和Gatsby创建一个静态网站,在本地一切正常,但是当我尝试在一个临时网站上使用它时,我得到了这个错误:
Path: /wp-json
The server response was "401 Unauthorized"
Inner exception message: "You are not currently logged in."
ERROR #11321 PLUGIN
那么有没有办法让Gatsby使用我的凭证访问我的Wordpress网站呢?
我的gatsby-config.js:
module.exports =
我已经安装了gatsby-plugin-react-svg,但是当我更新gatsby-config文件时,它会导致“太多递归”错误。我尝试过在gatsby文档页面上推荐的配置,但仍然给出了错误。
错误:
InternalError: too much recursion
./node_modules/style-loader/lib/urls.js/module.exports
node_modules/style-loader/lib/urls.js:57
54 |
55 | /gi = Get all matches, not the first. Be case ins
我正在尝试弄清楚为什么我必须在gatsby-browser.js中指定所有的HTML标记,以便MDXrenderer能够理解如何对这些HTML标记设置样式。 内容通过GraphQL查询来自GraphCMS。 我一直在研究其他gatsby项目,这些项目没有设置规范,但它们正确地呈现了HTML标记。 我可以针对大多数HTML标记,但我不知道"ul“和"li”标记是如何呈现的。例如,我可以针对它们并应用颜色,但在查看时,它仍然看起来像页面上的"p“标签。不过,如果您检查该元素,它确实会显示"ul“和"li”标记。 如下例所示: Webpage with in