Skip to content

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

@madecki

Description

@madecki

Versions

  • @prismicio/react: 2.5.0
  • react: 17.0.2
  • node: v16.17.0

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

Details 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions