Nuxt2 prismic rich text unable to extract heading4 from API

I have inserted the multi option in my config to allow for heading4, and I have successfully seen the option in my editor as seen here.
Screenshot 2024-02-03 at 1.28.00 PM

However, on pulling the API on my nuxtjs application, i am seeing the following data

element: {
type: 'heading3',
text: 'This is some text',
spans: [ { start: 0, end: 28, type: 'strong' } ]

It shows heading3 instead of heading4 or any custom labels. Any help I can get from this?

"@prismicio/client": "^4.0.0",
"@nuxtjs/prismic": "^1.4.2",

Hi @gabrielszewh,

Did you remember to republish your document to the API after making this change?

Can you provide me the URL of your repo so I can try and recreate this issue on my end?


Hi @Phil , it seem to have started working normallly after a couple of days.. not sure why.. But can i ask what do you mean by republishing my document to the API? Can you share more about this step and how to go about this? Thanks in advance.

Republishing a document means once you make a change and save a document that you remember to click the publish button as clicking save doesn't send the data to the API it only saves the state.

Yes i definitely published it. We can close this for now since it is working though.. Thanks.

1 Like