繁体   English   中英

在 Zeit 上使用 gatsby-source-buttercms 部署 gatsby 应用程序时出错

[英]Error when deploying the gatsby app with gatsby-source-buttercms on Zeit

我的代码: https://github.com/who-know-cg/main-gatsby

每次我(在 Zeit 上)构建我的 Gatsby 应用程序时,我都会收到以下错误消息:

ERROR #11321  PLUGIN

"gatsby-transformer-json" threw an error while running the onCreateNode lifecycle:

Could not find function loadNodeContent for plugin gatsby-source-buttercms

Error: Could not find function loadNodeContent for plugin gatsby-source-butter  cms

在使用gatsby develop进行开发时,我从未遇到过这个错误。

这是关于 github https://github.com/ldd/gatsby-source-github-api/issues/10的类似问题。 但我不知道答案是什么意思,也不知道是不是同一个问题。

请帮我看看哪里出了问题,谢谢。

如果您还没有得到答案,那么有一个临时解决方法可以解决这个问题。 您自己链接的 github 非常有帮助。

获取源代码并将其用作本地插件。 https://www.gatsbyjs.org/docs/creating-a-local-plugin/

将源代码中的 mediaType 从application/json更改为text/plain 这应该是一个有效的临时解决方案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM