Questions tagged [gatsby-plugin]

246 questions
2
votes
1 answer

Query for images in netlifycms not working correction in gatsby/graphql. Need help verifying configuration

I'm not sure what's wrong with my configuration. I've read all the tutorials regarding how to set this up. However, my images are not being picked up correctly in graphql for some reason. Here is my config.yml backend: name: git-gateway …
2
votes
1 answer

How to add a new component to a homepage on Gatsby?

Introduction Hello guys! All I want to do is to add a new section to homepage on Gatsby but I'm having trouble with it. I cloned some simple blog on Gatsby and now I want to add a new section to a homepage to pages/index.js I tried to add a simple…
2
votes
0 answers

Pagination error on Gatsby JS category and tag pages

I use the awesome paginate plugin for Gatsby to do pagination on archive pages on the site. The plugin connects to the gatsby-node file.js is called there with the help of such code paginate({ createPage, items: allMdx.edges, …
Лео
  • 157
  • 1
  • 7
2
votes
0 answers

Cannot add plugins on gatsby

I have a dependency error trying to add any of the plugins available for gatsby. This issue is there immediately after the first installation of gatsby and after running the command "gatsby create". Here below you can find all the details of the…
2
votes
1 answer

Why does gatsby develop work well, but gatsby build doesn't work? - ERROR #95313

"gatsby develop" works well. However, an error occurs in 'gatsby build' Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-darwin-arm64v8.node' The above problem occurred in the beginning, so we solved it…
mango
  • 47
  • 5
2
votes
1 answer

how to download static file in gatsby js

I have a website with Gatsby.JS I want to when click download button, download one static pdf file. this ../../file.pdf is path of static folder. Above code my downloadable…
fsk
  • 219
  • 2
  • 14
2
votes
1 answer

how to use incremental build in Gatsby feature without Gatsby cloud

I am using Gatsby version "2.32.13" in my website and now I want to use Gatsby Incremental Build feature for my website but as my website is hosted on vercel I do not want to go for Gatsby Cloud. So what are the ways to implement this Gatsby…
2
votes
2 answers

Expected a string, got object gatsby-plugin-prettier-eslint Gatsby

I am trying to learn Gatsby and I included prettier-eslint plugin with a common configuration. You can see my configuration, the files, etc When I try to add a css file I get this error:
AndresSp
  • 176
  • 3
  • 16
2
votes
0 answers

How to use Gatsby plugin image on incremental builds

I am using Gatsby 3.6.1, with Gatsby plugin image. I am fetching images using gatsby-source-apiserver, with the following structure: [ { "pk": 1, "url": "https://location_of_the_image1", }, { "pk": 2, "url":…
Ander
  • 5,093
  • 7
  • 41
  • 70
2
votes
0 answers

How to get Gatsby Plugin Contentful Optional Fields working?

Having an optional field on a content type in Contentful, I tried to get Gatsby-Plugin-Contentful-Optional-Fields working. The optional field is an image, that I render with the new Gatsby-Image-Plugin. After configuring the plugin in my…
Peter
  • 21
  • 3
2
votes
1 answer

src as prop in gatsby-plugin-image issue

Hy everyone, I need help because I'm struggling using gatsby-plugin-image StaticImage with props ... I have a component Trailer I'm using with props to get the datas. Everything works fine for all the props like the title, the year etc... except for…
user6103049
  • 21
  • 1
  • 2
2
votes
1 answer

Using gatsby-plugin-google-tagmanager in developement

I have a gatsby project setup and the gatsby-plugin-google-tagmanager setup in my gatsby-config.ts using the following configuration: ... { resolve: 'gatsby-plugin-google-tagmanager', // @see…
GeorgesA
  • 320
  • 2
  • 9
2
votes
1 answer

How do I create multiple pages from a single markdown file?

In Gatsby, I have file.md, and I'd like to generate multiple pages—one for each section of file.md. gatsby-transformer-remark When using gatsby-transformer-remark, I can get the HTML of an entire markdown file with allMarkdownRemark.nodes.html. How…
Loren
  • 13,903
  • 8
  • 48
  • 79
2
votes
1 answer

Gatsby theme i18n markdown doesn't change language when toggle

I'm using both plugins, gatsby-theme-i18n and gatsby-theme-i18n-react-i18next I think gatsby-theme-i18n-react-i18next work fine. But gatsby-theme-i18n for markdown files don't work, possibly I don't understand well enough so I can change language…
2
votes
2 answers

Gatsby images from markdown posts not displaying from graphql query

I built a blog with Gatsby and Tailwind using markdown for blog posts. When querying the data using graphql, I can't get any of the images to display. My images are stored within the src/ directory in an images/ folder. My posts are inside of a…
Nikki Peel
  • 67
  • 9
1 2
3
16 17