我对gatsby和react都是新手。我正在制作一个联系人表单,并希望基于使用react-bootstrap中的组件的教程来完成它,但是我不知道如何在我通过github存储库部署的gatsby starter上安装它。 我的代码给出了一个想法: import React from 'react';
import Layout from '@common/Layout';
import Navbar from '@common/Navbar';
import Header from '@sections/Header';
im
您好,我正在使用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/React构建一个站点,该站点在构建时向WordPress服务器发送API调用,以便检索博客帖子列表。虽然'gatsby-build‘和'gatsby develop’命令都在本地工作,但在Netlify上部署站点时,部署总是失败的:
error "gatsby-source-wordpress" threw an error while running the sourceNodes lifecycle:
Cannot convert undefined or null to object
显然,它每次都无法从WordPress检索A
我运行了以下命令来创建一个新的gatsby初学者博客:
gatsby new blog https://github.com/alxshelepenok/gatsby-starter-lumen
cd blog
gatsby develop
但是在gatsby develop期间,我遇到了许多名为ERROR #98123 WEBPACK的错误--生成开发JavaScript包失败了。
我尝试了这么久,删除并安装了一次又一次的回购,也删除了node_modules和package-lock.json,然后又删除了npm install,但是得到了同样的错误。帮帮我!
有关详细信息, (它有点
我用Gatsby和Strapi (开源cms)做了一个小项目。当我在本地运行项目时,我完美地从Strapi获得了所有的内容类型。但是,当我想要将项目部署到netlify时,部署失败,并且在控制台中收到404错误。
info Starting to fetch data from Strapi - https://agitated-euclid-2d5577.netlify.com/blogposts
error "gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
Reque
我有一个盖茨比网站,已经顺利运行了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。在开发模式中,我设置了gatsby in gatsby-config.js的选项watchMode:true,这可以很好地观察sanity工作室的变化,但在生产中却并非如此。我尝试添加一个令牌,并在watchMode和false之间切换。我看到生产中的变化的唯一方法是在Netlify上重新构建我的站点。
上下文:
我已经将我的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
我最近从react static切换到了gatsby &碰壁。当我安装和构建gatsby-starter-netlify-cms时,我得到一个错误:
success open and validate gatsby-configs — 0.049 s
success load plugins — 1.757 s
success onPreInit — 53.736 s
success delete html and css files from previous builds — 0.013 ssuccess initialize cache — 0.725 s
success cop