我一直试图在Google平台上部署用盖茨比( Gatsby )制作的静态应用。
我的麻烦在于app.yaml文件。
以下是我迄今所做的工作:
1. Made a Gatsby project.
2. Gatsby build.
3. Uploaded the public folder to a GCS bucket.
4. Copied it to the Google Cloud Shell using the following command: gsutil rsync -r gs://static-site-test ./gatsby-test
5. cd gatsby-
试图在netlify上部署我的盖茨比应用程序。基本上,我为一些特定的目的添加了一些jQuery,但是当我上传它时,我得到了ff错误:
11:52:55 AM: failed Building static HTML for pages - 5.342s
11:52:55 AM: error Building static HTML failed
11:52:55 AM:
11:52:55 AM: 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
11:52:55 AM: 5
我从yaml文件中获取数据,其中一个字段是gif文件的路径: name: Refer A Medical Specialist
summary: Machine learning web app that refers a medical specialist depending on user's symptoms
tags: [React, Node.js, MySQL, Redis]
image: images/diagnosis_app.gif 我使用的是official docs推荐的gatsby-transformer-yaml,它适用于jpg,png,但
我花了三个小时来调试这个盖茨比构建错误。
它说要使用非缩小的命令,但是gatsby develop不会抛出任何错误,所以我有点不确定如何调试它。
在线查看对/styles/文件夹的显示非常少。
我的Netlify服务器还抛出相同的错误,以及在Mac上本地失败。
对从哪里开始有什么建议吗?
ERROR
Page data from page-data.json for the failed page "/styles/": {
"componentChunkName": "component---src-pages-styles-js",
我在试图修复React-Leaflet / Leaflet希望定义窗口并导致盖茨比构建npm run build失败的问题。
错误消息:
WebpackError: window is not defined
- leaflet-src.js:230
~/leaflet/dist/leaflet-src.js:230:1
- leaflet-src.js:7 version
~/leaflet/dist/leaflet-src.js:7:1
- leaflet-src.js:10 Object.exports.__esModule
~/leaflet/
我正在使用Gatsby创建一个博客。Gatsby可以使用带有GraphQL的markdown为你“自动”创建帖子页面。我在想用Gatsby example here。 在storybook UI中,“模拟”出graphql查询并将其替换为我们的markdown数据的最佳方式是什么?这样我就可以在Storybook UI中测试这个组件。例如,如果我有一个博客模板,如下所示: import { graphql } from 'gatsby';
import React from 'react';
export default function Template(
当我在Netlify上构建时,我得到的文档没有被定义为在404页面上生成错误,但是构建在我的本地机器上成功运行。我也不引用页面中的任何文档或窗口对象。
我尝试删除404页,但列表中的下一页出现了相同的错误。
这是我的404页
import React from "react";
import styled from "styled-components";
import AniLink from "gatsby-plugin-transition-link/AniLink";
const Container = styled.div`
wi
我查了很多线索,但找不到相关的线索,所以我在这里问。我基本上使用@drei依赖项在我的gatsby站点中添加了一个GLTF文件(我在Sushi.jsx中声明了该文件)。在我的本地开发服务器上,一切正常工作: gatsby开发或gatsby构建没有错误。但是在我的ubuntu液滴上,它总是抛出这个WebpackError:#95313。我不确定这是否与3D模型有关,还是仅仅是@drei本身的转换错误。
ERROR #95313
Building static HTML failed
See our docs page for more info on this error: https: