我使用Strapi作为无头CMS,并使用Gatsby + Graphql构建我的前端。我有一个“块呈现器”组件,它在strapi中呈现任何动态区域。
import React from "react"
import { graphql } from "gatsby"
import BlockHero from "./block-hero"
import BlockParagraph from "./block-paragraph"
import BlockSplitFeature from "./block-split-f
我正试图用strapi和gatsby获得一个快速的原型。所有的初学者似乎都不起作用,所以我在strapi网站上尝试了快速启动的方法。
首先,我遵循了这个快速启动指南,以获得strapi后端。
然后这个让盖茨比跑了。
并且遇到了两个错误。
"gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
Request failed with status code 403
...
warn The gatsby-source-strapi plugin has generated n
我用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
问题
当我在项目上运行gatsby build时,会引发此错误:
Field "micro_article_container" of type "[StrapiArticleMicro_article_container]" must have a selection of subfields. Did you mean "micro_article_container { ... }"?
我的圈套
我正在运行一个带有Graphql插件的strapi (v3.6.8)实例和一个gatsby前端。有一个article类型,它有一个由组件micro
我想安装strapi的postgres版本,一个用于Gatsby.js的无头CMS。但是,我收到以下消息,无法安装它。
npx create-strapi-app@3.6.8↓
Choose your installation type Custom (manual settings)
? Would you like to use a template? (Templates are Strapi configurations designe
d for a specific use case) >No
? Choose your default database client>
我刚刚和Strapi和Gatsby开始了我的第一个项目。在刚刚升级到Gatsby CLI 3.0之后,我收到以下错误:
Cannot query field "allStrapiArticles" on type "Query"
我的整个文件:
import React from "React"
import { Link, graphql } from "gatsby"
import Navbar from "../components/navbar"
import Footer from "../com