Questions tagged [prismic.io]

A developer-friendly CMS backend

Home page

178 questions
2
votes
0 answers

How do I implement a 'scrollspy' nav in React without useRef

I'm currently working on a project with Nextjs and Prismic From Prismic, I'm fetching an array of slices, which includes the navigation slice and the section slices. I'd like to implement a full-width horizontal nav bar that starts halfway down the…
David Fox
  • 55
  • 9
2
votes
1 answer

React never loads

Stack: React/Gatsby + Prismic integration + Netlify hosting Issue: I cloned https://github.com/margueriteroth/gatsby-prismic-starter-prist My repo can be found at: https://github.com/kylemhudson/kyle-m-hudson-prist There have been issues with…
Kyle H.
  • 23
  • 4
2
votes
1 answer

How do you properly configure gatsby-source-prismic-graphql preview functionality?

I'm using the gatsby-source-prismic-graphql plugin, and I'm trying to properlly configure it's Prismic preview functionality. Expected functionality From Prismic CMS' editor on an already published document, I make a change, save, and I click the…
Nick
  • 23
  • 6
2
votes
0 answers

Improved performance, Lighthouse audit,

I generated a report using Lighthouse for nuxt-prismic-showcase Here the result : lighthouse report I set up lazy loading for images, cut to the right size, use next-gen formats, fix ensure test remains visible during webfont load by adding…
Sas
  • 23
  • 4
2
votes
3 answers

Unable to run Gatsby application using npm run develop command

I am developing my first project with Gatsby and prismic. Today when i tried to start my development server i faced this error. I searched but i couldn't find similar errors anywhere. I am completely blocked on this one and have no clue what's…
2
votes
1 answer

Custom schema, interface, @fileByRelativePath and gatsby-image

I'm trying to get an interface working with the new @fileByRelativePath resolver extension, to keep compatible with v3. I'm using Prismic for my content, and gatsby-source-prismic v2. I have two content types in Prismic, and created the interface to…
jenniferkshields
  • 221
  • 1
  • 2
  • 8
2
votes
1 answer

How to perform a nested query in graphql using gatsby-source-prismic

I'm just getting started with gatsby and graphql and I've started using prismic as a cms. I cannot figure out how to perform nested queries, avoiding overfetching. I don't even know if it would be possible or if it's more just me thinking of the…
Laurence
  • 367
  • 4
  • 13
1
vote
0 answers

Properly typing Prismic Content Relationships

I am trying to build a mega menu for a my header but am running into a type error and was wondering if anyone had run into this and how you solved it? I am importing the generated types from @/prismicio-types. My client query looks like: export…
Nick
  • 1,471
  • 2
  • 21
  • 35
1
vote
1 answer

Typing error in a prismic app with a ContentRelationshipField

In my prismic nextjs app, I have a type error I can't solve. The app work fine functionally, but I keep having some type errors like this one : La propriété 'data' n'existe pas sur le type 'ContentRelationshipField<"category">'. La propriété 'data'…
Rom-888
  • 681
  • 2
  • 9
  • 30
1
vote
1 answer

How can I fetch data in prismic app built with nextjs?

I've built my app using primsic with nextjs. On landing page, I want to display only 3 aritcles of my page and then If user click next page button, I want to display next 3 aritcles page I have index page which includes following props. How can I…
Danny Kim
  • 809
  • 1
  • 7
  • 15
1
vote
2 answers

Trying to connect to prismic got " '[Link resolver error] Unknown type\n' "

So I'm running an app with nodejs + express, and trying to connect to the prismic API. keep getting " '[Link resolver error] Unknown type\n' ", I understand from the message it's something about my routes but I'm unsure how to fix it prismic…
Taste of Leaving
  • 304
  • 2
  • 20
1
vote
0 answers

Next JS error with linking between dynamic pages of a dynamic route

I'm having some trouble with a dynamic route in Next JS, and navigating from one dynamic page to another. I have a custom type called 'projects'. In that custom type I have set up a Content Relationship field from Prismic called 'relatedProject', so…
JonQuayle
  • 11
  • 4
1
vote
3 answers

React component renders twice

I have text from my Prismic CMS, where I want to apply 'dynamic words' on. Dynamic words are words from the CMS, that have an image linked to it, so if a text contains a dynamic word, it changes it to a span with data attributes, so an underline…
Mauro
  • 342
  • 3
  • 10
1
vote
1 answer

how to fetch only specific data from graphql query

I am trying to fetch some data from my CMS but I am facinf an error when fetching a specific data. It's an array that I want to fetch with the graphql query : { allPrismicLastPosts { nodes { data { links { blog { …
Jaacoubi
  • 97
  • 6
1
vote
1 answer

How to fetch data from Prismic with GraphQL accordingly

I am trying to fetch some data from my Prismic CMS , using GraphQL and Gatsby.js , this is what I am trying to fetch : { allPrismicLastPosts { nodes { data { blog_title { text } blog_paragraph { …
Jaacoubi
  • 97
  • 6
1
2
3
11 12