Questions tagged [gatsby]
Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps
gatsby
5,936
questions
0
votes
0
answers
12
views
Wordpress & Gatsby website throwing error when pulling graphql data
I've been building brochure sites with Wordpress as a backend and Gatsby as the frontend for years - however i've not done one for a few months.
I came to build a new one last night, and I'm getting ...
0
votes
0
answers
7
views
compiled Gatsby files
I'm new to gatsby, and i have a problem
I followed all the steps in the quick start guide, but when doing sudo docker compose up --build in the root folder of the project, I receive the following ...
0
votes
0
answers
11
views
How do I retrieve the relativeUrl, width, and height of an image file inside a component, given the image filename in gatsby-config.js?
I want to fetch the image relativeUrl, width, and height and use them inside a component as metadata.
I have the following schema type defined in gatsby-node.js:
type Publisher {
legalName: String!
...
0
votes
0
answers
26
views
CSS backdrop-filter showing a darken area at start of div
I am trying to create a glassmorphic style header. On big screen it works without any issue, but on mobile screen it shows a darken area at start of div.
One thing that I noticed is that after a ...
-4
votes
0
answers
15
views
Why after switching to Gatsby JS from html css js, my styles are not applying correctly [closed]
I copied the code from html css js, and inserted it into Gatsby js. at 1024px the page should be rebuilt and I have this situation.enter image description here enter image description here . vanila ...
0
votes
0
answers
15
views
How Do We Make Scoped Styling In Our Pages Folder a Higher Priority than Our Global Styling?
I'm working on a project that uses Gatsby 5.12.11 and I ran into an issue with styling components in the pages folder. I'm using a CSS framework I created called srcry css which has a couple classes ...
0
votes
0
answers
36
views
Embedding a GGPlotly into Gatsby page
THE INTRO: I am trying to embed ggplotly graphs into a Gatsby webpage I am learning to create. After arguing back and forth with ChatGPT for a couple hours, I'm seeking out your knowledge.
Here is at ...
0
votes
1
answer
19
views
Impossibility to install dependancies with Gatsby
I create a new Gatsby project (with JS, tailwind). I would like to install other dependancies like gatsby-plugin-react-helmet, @mui/icons-material for example.
Unfortunately I have error messages :...
0
votes
1
answer
42
views
Component Not Rendering in .map Function
I'm trying to iterate an array of data into a component. The way I'm doing it looks like this
<article className={styles.contentList}>
{
organizations.map((item, index) =>{
...
0
votes
0
answers
9
views
Deploying Gatsby React app to github pages
I followed the instrution in gatsby document(gatsby). I keep geting this error. When I run npm run deploy
Error: Failed to get remote.origin.url (task must either be run in a git repository with a ...
0
votes
0
answers
46
views
Gatsby build fails when using spline
I am using spline in a React project and am using Gatsby to create static pages of this project.
When I run Gatsby develop locally everything works fine and my spline project is showing on the page.
...
0
votes
0
answers
13
views
How to inject a value in graphql template string?
I'm trying to get list of orders based on the customer id, which was stored in localStorage. I want to inject this customer id to the graphql query.
I tried injecting the customer id into graphql ...
0
votes
0
answers
19
views
Importing Global Stylesheet Into gatsby-browser.js File Not Working
I'm updating a site built with Gatsby 5.1. I want to add a global stylesheet to the project to expose styling to the entire website and saw that the best way to do it is to simply import it into the ...
-4
votes
0
answers
42
views
Is it possible to modify files at runtime in a static website?
Note: This question is relevant to people who want to understand what exactly you are allowed to do in a dynamic site but not a static site.
Hi there. I've been working on a "quote of the day&...
0
votes
0
answers
17
views
WPforGraphQL for ACF plugin upgrade leading to build errors
JAMStack frontend not building upon upgrade to new version of WPGraphQL for ACF plugin.
Working on a JAMStack framework using a Gatsby.js frontend site that queries a headless WordPress CMS via ...