-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJS: 'Box' cannot be used as a JSX component. #2430
Comments
Currently solved by
|
Hey @nesterow. Thanks for the issue! Just wanted to let you know I reproduced it and I'm working on it. It might be related to TypeScript 5.1 JSX changes. Not 100% sure yet, but it should be just an update to the types. |
Okay, it seems like you need TypeScript 5 to use the newest The error of ReactNode not being JSX.Element comes from the fact that TypeScript 5.1.2 is breaking, and @types/react in DT isn’t semverred, it’s locked to React types. |
🚀 Issue was released in |
Thanks! 👍
…On Thu, Jun 15, 2023 at 6:11 PM Piotr Monwid-Olechnowicz < ***@***.***> wrote:
🚀 Issue was released in v0.16.0
<https://github.com/system-ui/theme-ui/releases/tag/v0.16.0> 🚀
—
Reply to this email directly, view it on GitHub
<#2430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALPVGLLA2SMY2DCKLXSS4XTXLMQ3FANCNFSM6AAAAAAY2XNYFQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Describe the bug
The problems appear on
next build
and seem to be related to alltheme-ui/Box
components:Screenshots
This is what might cause the error:
theme-ui/packages/components/src/Box.tsx
Line 134 in 6495a0a
Additional context
package.json
:tsconfig.json
The text was updated successfully, but these errors were encountered: