Questions tagged [prismic.io]

A developer-friendly CMS backend

Home page

178 questions
1
vote
0 answers

Generate typescript types for prismic

While slices machine types are better supported, something that will help us is if Prismic would provide a standard Swagger/Open API or Graphql Schema so I can run swagger-typescript-api or Generate code from your GraphQL schema to get the types…
robertovg
  • 1,018
  • 11
  • 16
1
vote
2 answers

Trying to connect to prismic got "getFirst is not a function"

So I'm running an app with nodejs + express, and trying to connect to the prismic API. The documentation is using the ESM, but I want to do it using CommonJS, when I finished the config and tried to run the app, I got the error getFirst is not a…
druj_nasu
  • 131
  • 8
1
vote
1 answer

component not generating url's for vue router

I am following along with Lucie Habere creating a recipe site w/Vue Router & Prismic. The problem I am having is that prismic-link component on my index.vue page is not generating the anchor tags href field for vue router. In looking in dev tools I…
Alan
  • 1,067
  • 1
  • 23
  • 37
1
vote
0 answers

NextJS application with Prismic failed to build in Vercel

I'm trying to deploy a Next application with Prismic and i'm getting this error in the building process. I have tried the solution with the webhook configuration in the Vercel servers without sucess Prismic Webhooks Here is the [slug].tsx…
1
vote
1 answer

Typescript call a method from a string dynamically

I'm used to use this type of dynamic method call in vanilla JS with @prismicio/client. But with typeScript, I get an issue : import Prismic from '@prismicio/client' const options = { predicate: 'at', path: 'document.type', value:…
Herzuull
  • 13
  • 3
1
vote
1 answer

How do I install Prismic.io tool on an existing Nuxt.js project

I have been trying to install Prismic.io tool on my existing Nuxt.js project: I have upgraded nuxt first: npm upgrade nuxt I have installed prismic via npm: npm i @nuxtjs/prismic In package.json file, the dependencies are now the…
1
vote
0 answers

How to create nested Repeater/Group Fields in Prismic Slices

I have to create nested Repeater/Group Fields in Prismic Slices in order to achieve the data for nested rows and columns table to be displayed in order to get a table preview like give Carbon Collective Table
1
vote
1 answer

How can you use different configs when you build a website (gatsby build)

I built a static website using gatsbyJS and prismic.io as a headless CMS. Does anybody know how to use different configs when building the website (gatsby build) ( for example : gatsby config 1 / gatsby config 2). The end goal is to use Jenkins to…
Jules-B
  • 13
  • 2
1
vote
1 answer

Which to use for Prismic project, prismic-javascript, @prismicio/client, prismic-dom, prismic-reactjs

Cant find a distinctive difference on their docs so asking here. prismic-javascript or @prismicio/client or prismic-reactjs or prismic-dom They all are npm packages. Can someone explain the 4 separate packages and when to use one over the other. My…
me-me
  • 5,139
  • 13
  • 50
  • 91
1
vote
1 answer

How to output HTML from graphql in Gatsby

I'm using Prismic CMS and Gatsby (both latest version) and the officical gatsby-source-prismic plugin. I'm trying to fetch blog posts from Prismic and display them on my blogpage which works fine. The only thing I struggle is the HTML Serializer at…
Marek123
  • 1,193
  • 7
  • 35
  • 75
1
vote
1 answer

React wait for async function to finish in order to setup DOM references

I am working on a React project which is fetching data from Prismic headless CMS. Fetching data is an async function. In HTML template I'm checking if data is fetched before rendering it with basic ternary operator ( { data ? (render data) : (no…
Skafec
  • 49
  • 6
1
vote
3 answers

Multiple routes from single page in NextJs

I'm building a marketing/consumer site for my company, migrating away from WordPress (thank god) to a combo of Next and Prismic. Currently, our consumer site has about 600 pages to account for multiple product and landing pages for each of our 35+…
Jesse Winton
  • 568
  • 10
  • 33
1
vote
1 answer

Getting around Prismic's lack of
element capability in rich text editor

I started using Prismic as a headless CMS for a previous project, and it worked fine, but on a second project, I ran into a problem that surprised me, and that is Prismic's inability to do a simple blockquote. Considering that this HTML element has…
wonder95
  • 3,825
  • 8
  • 45
  • 74
1
vote
1 answer

Query not updating in nuxt

I have a search page in my nuxt project with a search field. When I type a search word and submit, it sets a query param to the URL /search/?q=searchword but the page isn't updating when I make a new search. It updates the q parameter but asyncData…
Morten Hagh
  • 2,055
  • 8
  • 34
  • 66
1
vote
1 answer

Typescript types for Prismic Slices

I'm building a site using Prismic, Gatsby, and Typescript. Part of the appeal of Prismic is the slice feature, which allows you to create dynamic content sections that are easier for content editors to use. I've got a component called SliceZone that…
Jesse Winton
  • 568
  • 10
  • 33
1 2
3
11 12