Skip to content
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

unable to use it with next 14 #22

Open
statusunknown418 opened this issue Nov 10, 2023 · 7 comments
Open

unable to use it with next 14 #22

statusunknown418 opened this issue Nov 10, 2023 · 7 comments

Comments

@statusunknown418
Copy link

for some reason it won't compile :(
Screenshot 2023-11-09 at 22 54 35

@cheraff
Copy link

cheraff commented Nov 16, 2023

same

@claide
Copy link

claide commented Dec 6, 2023

Mine is shouting

Warning: [JSS] SheetsManager: can't find sheet to manage at ConfettiExplosion.

@jonnicholson94
Copy link

Same here - package is currently unusable on Next.js 14. Seems like it's related to SSR, as when you mark it as use client it throws a server-client mismatch.

@currenthandle
Copy link

Any updates on this situation? I am seeing the same issue.

@zilahir
Copy link

zilahir commented Feb 26, 2024

though i haven't tried this, by default next 14 components are SSR unless 'use client' is specified in a client component.

i am only assuming marking the component as a client component by adding

use client

on the top of the your component implementation might solve this problem.

@jonnicholson94
Copy link

though i haven't tried this, by default next 14 components are SSR unless 'use client' is specified in a client component.

i am only assuming marking the component as a client component by adding

use client

on the top of the your component implementation might solve this problem.

No this isn't it - as I noted above, it throws a server / client mismatch if you mark it with use client.

I can probably investigate it and push a fix myself, if the owner's happy for me to do it.

@rajyavardhanbithale
Copy link

though i haven't tried this, by default next 14 components are SSR unless 'use client' is specified in a client component.
i am only assuming marking the component as a client component by adding

use client

on the top of the your component implementation might solve this problem.

No this isn't it - as I noted above, it throws a server / client mismatch if you mark it with use client.

I can probably investigate it and push a fix myself, if the owner's happy for me to do it.

Dynamically importing the package with ssr:false resolves the server/client mismatch issue:
const ConfettiExplosion = dynamic(() => import("react-confetti-explosion"), { ssr: false });

However, there is still a warning: Warning: [JSS] SheetsManager: can't find sheet to manage, and it doesn't work at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants