Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrismicRichText Not working with filed ! #1

Open
HaribolGM opened this issue Jan 3, 2024 · 2 comments
Open

PrismicRichText Not working with filed ! #1

HaribolGM opened this issue Jan 3, 2024 · 2 comments

Comments

@HaribolGM
Copy link

If you trying to run this code down below it's working but in the code as PrismicRichText attributre is not working with filed

const Biography = ({ slice }: BiographyProps): JSX.Element => {
return (



{slice.primary.heading}

    <div className="prose prose-xl prose-slate prose-invert col-start-1">
      {slice.primary.description} 
    </div>
   

   
  </div>
</Bounded>

);
};

export default Biography;

&&
when i trying to run this code

I am getting error

code:

const Biography = ({ slice }: BiographyProps): JSX.Element => {
return (



{slice.primary.heading}

    <div className="prose prose-xl prose-slate prose-invert col-start-1">
      <PrismicRichText field={slice.primary.description} />
    </div>


 
  </div>
</Bounded>

);
};

export default Biography;

image

image

here are two difference images for comparison , and i also created slices in remote web application as shown in video. Please help me if you found the error.

@RabinChakraborty
Copy link

hey, @HaribolGM I was suffering with the same issue before and was unable to solve it as well so instead I just followed what @a-trost did and used the key text field instead of the rich text field and the site is working now.

@HaribolGM
Copy link
Author

Hey, @HaribolGM I was suffering with the same issue before and was unable to solve it as well so instead I just followed what @a-trost did and used the key text field instead of the rich text field and the site is working now.

Yeah that's the problem i used normal text filed rather than rich text filed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants