#Type error: 'x' cannot be used as a JSX component.
6 messages · Page 1 of 1 (latest)
🔎 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)
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?
It’s a simple component, we hardly use ssr so it’s not that.
If we comment this component it happens in another.
This component wasn’t changed recently which makes me think is a configuration/dependency issue
Out latest big install was related to i18n translations so might be that
I’m not in office right now so can’t send code, but will in the morning if we can’t find a solution
Solution: Apparently it was the styled-components version that was causing this error, here's the fix