Questions tagged [netlify-cms]

Ask questions about the Netlify CMS open source project. netlifycms.org

277 questions
13
votes
2 answers

GraphQL Error Field "image" of type "File" must have a selection of subfields. Did you mean "image { ... }"?

I am building a site with gatsby and Netlify CMS. I used the Gatsby Site Starter. I keep getting a "GraphQL Error Field "image" of type "File" must have a selection of subfields. Did you mean "image { ... }"?" error when trying to deploy to…
G. Ball.
  • 169
  • 2
  • 9
11
votes
2 answers

How to provide internationalization properly using Gatsby + Netlify CMS

I'm trying to make a multi-language site and faced some problems. Expected behavior: Language automatically changes depends on browser language The user can switch language example: https://tic-tac-toe-ai.surge.sh/ I saw gatsby-plugin-i18nand…
Ponchique
  • 201
  • 3
  • 11
8
votes
1 answer

Next.js: How to get static assets from within getStaticProps

I am using Netlify CMS. I want to import all the slides for a carousel into my component. I made a collection called slider and added a few slides. That created two markdown files (one for each slide) in public/content/slider/. I would like to…
nth-chile
  • 616
  • 1
  • 7
  • 20
8
votes
1 answer

Gatsby gatsby-remark-relative-images does not convert yaml absolute image path to relative

I am currently trying to resolve an absolute path in yaml file to relative so it can be query using graphql in gatsby. The absolute path are provided from netlify-cms. When the same path are being placed in md file and uses…
8
votes
2 answers

Netlify CMS with self-hosted Gitlab

I have a Gatsby static site that is currently deployed via Zeit Now from a self-hosted Gitlab account. I would like to add Netlify CMS, but it only seems to integrate with a Gitlab.com account. Is it possible to use Netlify CMS with a self-hosted…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
7
votes
3 answers

Problem with configuring Netlify CMS with Git Gateway

I am trying to use this Gatsby starter with Netlify CMS. https://github.com/stackrole-dev/gatsby-starter-foundation I followed the instructions exactly but after enabling Git Gateway, when I try to login in as admin I encountered this error massage.…
Joji
  • 4,703
  • 7
  • 41
  • 86
7
votes
1 answer

How to make a one to many connection between Netlify CMS and Gatsby

I'm using Netlify CMS on a gatsby site. I used the netlify CMS relation widget on my post collection to reference the title field of my author collection, so... - {label: "Author", name: "author", widget: "relation", collection: "authors",…
Matt
  • 424
  • 4
  • 11
6
votes
1 answer

gatsby/netlify CMS - javascript heap out of memory

Gatsby and Netlify CMS were running nicely for a while but now it fails when trying to run gatsby develop. With a "JavaScript heap out of memory" error. Every npm is updated and I've tried export NODE_OPTIONS=--max_old_space_size=4096 that some…
TrevPennington
  • 435
  • 5
  • 15
6
votes
1 answer

Make an image optional in netlify cms and gatsby js

I have a fairly simple Gatsby & Netlify CMS site. I can't cope with making images optional. In case of Netlify CMS it's just a matter of setting one field required: false. How do I write a query for Gatsby so I don't get an error 'GraphQL Error…
user1346765
  • 172
  • 1
  • 15
6
votes
1 answer

RuntimeError: memory access out of bounds - gatsby development extremely slow

Developing on Gatsby has been over time significantly slowing down - at times taking up 20-30 seconds for the hot loader to refresh the page. After around 10-20 updates to a page - it eventually always runs into the following error below: error…
jchi2241
  • 2,032
  • 1
  • 25
  • 49
6
votes
1 answer

Netlify CMS, Gatsby and GitHub authentication without Netlify

Did anyone has luck using OAUTH to authenticate to GB from Netlify CMS but NOT using the Netlify API? If so, what did you use? I want do the authentication with my domain but Im not sure which API or package Should I use for this. Im learning. Any…
Peter
  • 2,004
  • 2
  • 24
  • 57
5
votes
3 answers

Why is gatsby-plugin-image missing image prop?

I am working on improving my image sizes and noticed that gatsby image was deprecated so I decided to try on the gatsby-plugin-image. On static images like this:
Jukka Koivu
  • 269
  • 4
  • 15
5
votes
1 answer

Netlify deploy throws: Error: Invalid version: “1”

Since yesterday I'm facing an error that I haven't been able to fix or to find information about. I can build my site locally without errors but when I try to deploy it in Netlify it fails and throws: 8:19:33 AM: ​ 8:19:33 AM:…
Ferran Buireu
  • 28,630
  • 6
  • 39
  • 67
5
votes
1 answer

How to get the slug to show up in graphql using NetlifyCMS and Gatsby?

When adding netlify cms to a site how does one go about getting the slug to show up in graphql? I have one collection for a blog post and everything shows up except the slug: backend: name: git-gateway branch: master # Branch to update…
André Jarboe II
  • 558
  • 1
  • 5
  • 20
5
votes
1 answer

Using Netlify's hosted Identity service with self-hosted Netlify CMS

I am hosting my website on my own server, and using Netlify CMS. However, I would still like to use Netlify's hosted Identity and Git Gateway services, instead of running my own.
tech4him
  • 970
  • 5
  • 20
1
2 3
18 19