prism-react-renderer icon indicating copy to clipboard operation
prism-react-renderer copied to clipboard

Issue with <Highlight /> component in React/Remic

Open alissanguyen opened this issue 2 months ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

I'm getting this error:

Highlight' cannot be used as a JSX component.
  Its instance type 'Highlight' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/Users/nouveau/Documents/workspaces/alissanguyen-dot-dev/node_modules/@remix-run/server-runtime/node_modules/@types/react/index").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.

I'm using react v18.3.0 and PRR v1.3.1

alissanguyen avatar Apr 26 '24 04:04 alissanguyen