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

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

Open
madecki opened this issue Dec 14, 2022 · 0 comments
Open

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

madecki opened this issue Dec 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@madecki
Copy link

madecki commented Dec 14, 2022

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

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

@madecki madecki added the bug Something isn't working label Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant