Issue In playground 'Center' cannot be used as a JSX component. Its return type 'ReactNode' is not a valid JSX element. Type 'undefined' is not assignable to type 'Element | null'
#3059
taylorpreston
started this conversation in
General
Replies: 0 comments
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.
-
Description
I'm not sure if this is a typescript setting, but I am seeing this error when using the "JSX style props" example in the playground.
'Center' cannot be used as a JSX component. Its return type 'ReactNode' is not a valid JSX element. Type 'undefined' is not assignable to type 'Element | null'Link to Reproduction
https://play.panda-css.com/q34YhriqKq
Steps to reproduce
JS Framework
React (TS)
Panda CSS Version
v0.49.0
Browser
No response
Operating System
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions