#Type error: 'x' cannot be used as a JSX component.

6 messages · Page 1 of 1 (latest)

mellow wyvern
#

Hi! I'm getting this error when building my project. It seems to happen on some computers, not all. And we have no idea what may be causing it.
Thanks in advance!

crude fieldBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

mint gazelle
#

Is it a server component you are trying to render inside a client one? And are you sure you are returning some JSX and not breaking early or doing some other flow control?

#

Could you send the code for it?

mellow wyvern
mellow wyvern
#

Solution: Apparently it was the styled-components version that was causing this error, here's the fix