我的代码: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
描述 我正尝试在部署在GitHub页面上的Gatsby站点中使用环境变量,但它只能在本地运行,不能在活动站点上运行。显然,这是因为Gatsby需要一个.env.production文件来访问其中的变量。如何使用GitHub工作流创建它,并保持变量的保密性,使其不会公开? 我已经通读了这个相关的问题,但不知道如何将其转换为与我的情况相关的代码。How to use environment variables in Github Page? 重现步骤 我在github存储库设置中添加了一个秘密变量,创建了一个工作流文件,以便可以将其作为环境变量进行访问,在我的gatsby-config.js文件
我在我的网站上使用了Gatsby starter博客。上一次我尝试部署时,我得到了以下错误。
1:54:59 PM: error
1:54:59 PM: Your plugins must export known APIs from their gatsby-node.js.
1:54:59 PM: The following exports aren't APIs. Perhaps you made a typo or your plugin is outdated?
1:54:59 PM: See https://www.gatsbyjs.org/docs/node-apis/
所以我用Zeit Now部署了我的网站,我部署在Zeit Now网站上。我想使用命令行工具来部署我的Jekyll网站,但是now命令没有显示这样的文件或目录(我使用的是印尼语): root@localhost:~/betaleapofazzamgithubio# now init jekyll
bash: /usr/local/bin/now: Tidak ada berkas atau direktori seperti itu
root@localhost:~/betaleapofazzamgithubio# now
bash: /usr/local/bin/now: Tidak ada
您好,我正在使用Gatsby版本4.2.0构建一个网站,并使用Netlify进行部署。然而,关于Netlify日志中的缓存内容,我一直收到这样的错误。
ENOENT: no such file or directory, open '/opt/build/repo/.cache/caches/gatsby-source-contentful/33fda62asdfsdfkjwbdjkljsdf1/HeroBackground.jpeg.jpg
我在Netlify中尝试过gatsby clean和gatsby build以及"clear cache and deploy site
上下文:
我已经将我的Gatsby项目迁移到最新的Gatsby版本4,并且使用了新的gatsby-plugin-image,而不是不推荐的gatsby-image。
当我部署到Netlify时,下面一直有相同的错误。然而,在地方发展中,一切都在发挥作用。
Error: ENOENT: no such file or directory, open '/opt/build/repo/.cache/caches/gatsby-source-contentful/xxsdfhsdkfh/myimage.png
我试过的东西(没能不幸地解决问题)
NetlifyDeleted 单击.cache
我在部署最近从盖茨比( Gatsby )项目到Netlify的更改时遇到问题。项目的启动和构建命令在本地运行良好。
以下是问题所在:
error gatsby@3.6.0: The engine "node" is incompatible with this module. Expected version ">=12.13.0". Got "10.24.1"
下面是到回购和部署日志的链接:
我知道这个问题以前被问过无数次,但是没有一个共同的解决方案对我有用。也许我执行的不正确,或者可能遗漏了其他的东西。
以下是我尝试过的解决办法: