-
Notifications
You must be signed in to change notification settings - Fork 414
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
Sidebar bug in Next.js 14.1.0 #212
Comments
have you tried adding 'use client' to the sidebar wrapper ?! |
Yes! In all components too, but the same error |
Could you replicate this out of the Playground @Snarloff ? |
I replicated it in Playground and in my normal code and it gives this error :/ |
I having this issue too. Anyone made any progress yet? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
A better workaround is to check for component mount since there is a mismatch in the classname for broken sidebar
|
The "mounted" workaround was not preferable to me as there's an awkward second before the sidebar loads in. Instead I used CSS media queries to hide the sidebar on initial load when it is less than the breakpoint width |
Same here. It falls into hydration issue:
It's also visible all the way without backdrop regardless of collapsed prop value. "react-pro-sidebar": "^1.1.0", |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I use css variables, and this fixed the issues // jsx file |
I got the same issue, thanks all to make me know I am not alone T.T. The problem happen when I move project from vite to nextjs 14 |
Could you show me how you check and hide the sidebar ? Thank you so much |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello!
I have a bug in the package using it in Next.js version 14. The bug is that when entering the mobile device, the sidebar should start closed since it is responsive. However, as shown in the image, it starts open, not being responsive. I ran the sidebar by taking Playgroud.tsx and putting it in a Next project.
Screenshots
Running on
Windows 11
Next.js 14.1.0
Components declares with "use client"
I carried out the same test with Vite and it ran normally, being responsive.
The text was updated successfully, but these errors were encountered: