'Component' cannot be used as a JSX component.
Can somebody tell me why I am getting this error?:
15 Replies
@yourny loves tits had the same issue the other day. That error should be coming from having
@types/react-dom
installed. (At least, for me)that's not working for me
unfortunately
I'm literally encountering this problem every T3 project I create
did u try turning it off and then on
turning what?
does your app compile
and run
it does run
it doesn't compile
due to that error
?
npm run dev works
npm run build doesn't
oh
could be a number of things, hard to help with out a reproducible env
smells like an LSP error to me tho
what a lsp error is?
@Slogged what if I create a sandbox of the project?
that would be a good idea in this case because if you can reproduce the error in a sandbox we can debug the type dependencies. otherwise its like "this runs on my machine, but not yours" kindof scenario
whats the next version of your project btw?
13.4.1
Deploying btw
^ just updated to 13.4.2 but still getting the error
ahhh...you dont think this is an issue with types being updated in 13?
have you tried using next 12?
i know ideally you wanna be on 13 but still, could give us more info if we know the result with 12, no?
I installed 13.2.4 and It's working
Maybe there's some compatibility problem with the new version
Definitely