Questions tagged [prismic.io]

A developer-friendly CMS backend

Home page

178 questions
1
vote
0 answers

Dynamic prismic endpoint for nuxt module

In nuxt.config.js, the prismic module can be added as such modules: [["@nuxtjs/prismic", { "endpoint": "https://repository-id.cdn.prismic.io/api/v2", "apiOptions": { "routes": [{ "type": "page", "path": "/:uid" }] }}]] Can the subdomain…
findev
  • 135
  • 1
  • 2
  • 6
1
vote
1 answer

App working locally but not on production: TypeError: Cannot read property 'titulo_categoria' of undefined

I'm trying to deploy an app using Prismic as CMS and everything works perfectly locally, but once I deploy to vercel I get the error: 19:09:51.850 | TypeError: Cannot read property 'titulo_categoria' of undefined There seems to be something wrong…
Esteban89
  • 671
  • 1
  • 8
  • 20
1
vote
2 answers

How to create an ordered list with pugjs and prismic

I am using Express, PugJs, and Prismic.io (headless CMS) to create a blog article. Prismic end-point returns a JSON body with "type" for each part of the article, i.e. it could be a paragraph, an image, a header, or a list. I then use pugjs to case…
Aivoric
  • 838
  • 2
  • 10
  • 24
1
vote
1 answer

Gatsby not building but working fine in develop

I'm creating a site using Gatysby and prismic. Everything seems to work fine in development. But when I try to build I get an "undefined" error. Building static HTML failed for path "/preview/page" 48 | const Page = (props) => { 49 | …
HichiHachi
  • 451
  • 2
  • 8
  • 18
1
vote
1 answer

Multiple graphql queries in Gatsby component

I need to run multiple graphQL queries within a component and within the gatsby-node.js file. (Because Prismic is limited to 20 entries per answer...) I tried the following, just to see if I could create the graphql loop in the default function:…
Muchete
  • 21
  • 4
1
vote
2 answers

I get "Invalid Plugin Options" Error with Prismic Plugin in Gatsby

I'm using CodeSandbox to make a Gatsby app and I'm trying to use Prismic for the backend. I set it up nicely, I'm sure, and I installed gatsby-source-prismic to my project. However, when I add it to my config file and restart the project, it throws…
Lloydinator
  • 303
  • 1
  • 2
  • 17
1
vote
2 answers

gatsby-source-prismic-graphql production build throws an error when querying for a sharp processed image

childImageSharp { fixed(width: 320, height: 320, cropFocus: ENTROPY) { ...GatsbyImageSharpFixed } fluid(maxWidth: 800, quality: 90) { ...GatsbyImageSharpFluid presentationWidth } } 1:23:36 AM: error There was an error in your…
szokrika
  • 41
  • 2
  • 8
1
vote
0 answers

gatsby-source-prismic V3.0.0-beta.26 in previewhas previewData linked documents as Proxy array

When i test the website into preview mode, i get the data, but the slices or content relationship don't have the same model. The data is of type "Proxy". How can i get the data as in the non preview? Is there a serialzer to use? Here is a screenshot…
Bounews
  • 121
  • 1
  • 1
  • 5
1
vote
2 answers

Prismic - set a maximum for repeatable elements in group

Is it possible to only allow content creators to add 1 or 2 elements in a repeatable group? I am looking for something like this: "content_teasers" : { "type" : "Slice", "fieldset" : "Content Teasers", "description" :…
Bergrebell
  • 4,263
  • 4
  • 40
  • 53
1
vote
1 answer

How do I query for gatsby-image?

I am trying to query a prismic single type to display photos via gatsby-image. After messing around in GraphiQL, I see the image url but I'm not sure how to plug it in to gatsby-image. Any advice?
TrevPennington
  • 435
  • 5
  • 15
1
vote
2 answers

"gatsby-node.js" created a page and didn't pass the path to the component

I'm trying to use prismic and gatsby to dynamically generate some pages following this tutorial. I created the UID in prismic, and it looks like it's sending the path, but I get the following error: ERROR #11322 Your site's "gatsby-node.js"…
Ashbury
  • 2,160
  • 3
  • 27
  • 52
1
vote
0 answers

Prismic integration with Gatsby causing window to be undefined in build

I'm using 'gatsby-source-prismic-graphql' to integrate a Prismic repository with an existing Gatsby project, but am finding that the window object is undefined when the site is built. The problem is different (though maybe related?) to that caused…
Barney
  • 11
  • 1
1
vote
1 answer

Is there any way to create nested repeatable content in Prismic?

My use case is the following: I have a page with a quiz on it, the quiz has N sections/questions and M possible answers. Both the questions and answers contain multiple fields though (e.g. an image, title and a color for each answer). I'm using a…
Martin
  • 111
  • 1
  • 10
1
vote
1 answer

TypeError: Cannot read property 'prismic' of undefined

I'm working on a Project using Gatsby/GraphQL/Prismic. When I'm trying to get data from Prismic API using GraphQL this error is popping up. However when I query request on GraphiQL browser it's getting data from API. But when use it inside…
jonybekov
  • 274
  • 1
  • 5
  • 18
1
vote
2 answers

"Cannot read property 'node' of undefined" - Gatsby/GraphQL/Prismic

I'm using the "gatsby-source-prismic-graphql" plugin from Gatsby to connect my Prismic repo with a component and display the blog post data as a card. The query works fine in GraphiQL, but when I implement the GraphQL query into the component Gatsby…
ENEIV
  • 13
  • 3