-
Notifications
You must be signed in to change notification settings - Fork 83
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
Next.js 13 &14 + Park UI / Panda CSS / can't import DatePicker
#128
Comments
DatePicker
DatePicker
Thank you for taking the time to create this issue. Unfortunately, there are many misconceptions about what Ark UI, Radix, or any other component library uses banner: (x) =>
['index.cjs', 'factory.cjs', 'compose-refs.cjs'].includes(x.fileName)
? ''
: `'use client';`, This setup allows the component library to integrate seamlessly with your Next.js app. The Does this mean a UI component never renders on the server? Conclusion: Further reading: |
@cschroeter really appreciate the clarifying context. I think I've got this working now By the way, I'm really glad you're tackling both next JS and solid js with Park UI! Apologies in advance but I've got a similar problem in the solid start example you've got here. The difference is I don't think there's a "use client" directive for solid js. I have a feeling there's a problem with the provider pattern being used for style provider that doesn't work on the server and is causing a hydration mismatch Opened a new bug for it here: #142 |
I'm attempting to use the
DatePicker
component per the examples provided (thanks for providing this example baseline to clone and reproduce issues! 🙏 )Here's a fork of the repo where, after upgrading to Next 14 (and also before with Next 13) I'm seeing an error
I'm a bit confused because the
// 'use client'
directive isn't exactly something I want, I'd like to render these on the server, if possible, maybe you can explain that a bit for me and others coming across a similar issue?Here is a fork of the repo with my (intended to be tiny / non-controversial) change:
brianfeister@05472b7
Here's a stackblitz of it
https://stackblitz.com/github/brianfeister/park-ui/tree/main/examples/panda/react/next-js
The text was updated successfully, but these errors were encountered: