Gatsby项目给出了奇怪的错误,无法构建

标签 gatsby

我npm install --save gatsby-transformer-sharp gatsby-plugin-sharp,然后这样做后,我无法运行我的项目,并且出现了这些奇怪的错误:

(sharp:7804): GLib-GObject-WARNING **: 14:10:08.042: cannot register existing type 'VipsObject'

(sharp:7804): GLib-CRITICAL **: 14:10:08.043: g_once_init_leave: assertion 'result != 0' failed

(sharp:7804): GLib-GObject-CRITICAL **: 14:10:08.043: g_type_register_static: assertion 'parent_type > 0' failed

(sharp:7804): GLib-CRITICAL **: 14:10:08.043: g_once_init_leave: assertion 'result != 0' failed

最佳答案

该错误是由以下原因引起的:gatsby-plugin-favicon,Sharp尚未更新,暂时将其卸载。

关于Gatsby项目给出了奇怪的错误,无法构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57603001/

相关文章:

css - :hover element change::after style another component

reactjs - 在 Gatsby 中添加 PDF 文件

javascript - 如何在 GatsbyJS/ReactJS 中重复执行窗口函数?

使用 gatsby-plugin-react-i18next 时 Gatsby 找不到客户端路由

node.js - Linux Mystery : How Does Running a Node Module (Gatsby) Result in an . steampath 错误?

javascript - 数组状态更新后 React 不重新渲染

javascript - Gatsby 设置背景图像 CSS-In-JS(情感)

reactjs - 如何刷新 Gatsby 中的当前页面?

css - 与 Gatsby react : Why is that my font file is downloaded twice sometimes

node.js - 为什么在 npm 安装 gh-pages 后 git bash 无法将 gh-pages 识别为有效命令? [GatsbyJS,GitHub 页面]