herrethan/react-confetti-explosion

unable to use it with next 14

Opened this issue ยท 6 comments

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

same

Mine is shouting

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

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.

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

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.

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.