prismicio / prismic-react

React components and hooks to fetch and present Prismic content
https://prismic.io/docs/technologies/homepage-reactjs
Apache License 2.0
152 stars 40 forks source link

Different types from @prismicio/types and in @prismicio/react? #169

Open madecki opened 1 year ago

madecki commented 1 year ago

Versions

Reproduction

  1. Create a slice with Rich Text field
  2. Generate types using prismic-ts-codegen
  3. Use <PrismicRichText> component and provide that field to it
  4. Observe the error: image
Dependencies related to the issue: ``` "@prismicio/client": "^6.7.1", "@prismicio/helpers": "^2.3.6", "@prismicio/next": "^1.0.2", "@prismicio/react": "^2.5.0", "@prismicio/types": "^0.2.4", "slice-machine-ui": "^0.5.2", "typescript": "4.3.5", "prismic-ts-codegen": "^0.1.5", ```

What is expected?

Types should just work fine :)

What is actually happening?

Error appears