Why rehype-react no longer supported React Fragment types? Options needs comment out // @ts-expect-error: the react types are missing. #171
Unanswered
wimpykid719
asked this question in
Q&A
Replies: 1 comment 2 replies
-
When upgrading, please see the changelog: https://github.com/rehypejs/rehype-react/releases/tag/8.0.0. The reason: because it uses the automatic JSX runtime now |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new using this kind of this library and I installed My next.js app router project try to use.
But I got this type error when I use without comment out
// @ts-expect-error: the react types are missing.
This error will happen in rehype-react version 8.0.0.
But Doesn't happen in rehype-react version 7.1.2.
I can't understand Why is it no longer supported React Fragment types?
this is my code
Beta Was this translation helpful? Give feedback.
All reactions