herrethan / react-confetti-explosion

A lightweight css-animation based confetti exploder for React
MIT License
212 stars 19 forks source link

Doesn't seem to work with NextJS? #19

Open cheestudio opened 1 year ago

cheestudio commented 1 year ago

Chances are this repo is abandoned, but in the vain hope that you're still around...

I've loved using this little package, it's been perfect for my needs. I've been building an app on React18 and it was working great. I recently updated to the latest NextJS version, and it no longer seems to function. The issue seems to be that the CSS never gets enqueued. The HTML elements are injected and appear in the DOM, but there's no accompanying styles.

Any ideas?

enotario commented 1 year ago

I'm having the same issue

sponrad commented 1 year ago

Same here, only seems to be affecting me after upgrading next from 13.4.12 to 13.5.2.

I see this warning in the console.

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

cheestudio commented 1 year ago

If anyone needs a quick solve, I switched to:

https://www.npmjs.com/package/react-dom-confetti

Works more or less the same, was nearly a drop-in replacement.

AhmedBaset commented 1 year ago

same here Next.js & tailwindcss

michaelfortunato commented 1 year ago

Same here!

charanjit-singh commented 1 year ago

Same here

ozanyusufoglu commented 1 year ago

Exactly the same reason and console.log error!

Same here, only seems to be affecting me after upgrading next from 13.4.12 to 13.5.2.

I see this warning in the console.

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

AhmedBaset commented 1 year ago

Hey folks, Will anyone take on the task of solving it or creating an alternative?

cheestudio commented 1 year ago

@A7med3bdulBaset

See above! I switched to:

https://www.npmjs.com/package/react-dom-confetti

Works more or less the same, was nearly a drop-in replacement.

AhmedBaset commented 1 year ago

@A7med3bdulBaset

See above! I switched to:

https://www.npmjs.com/package/react-dom-confetti

Works more or less the same, was nearly a drop-in replacement.

I tried it but it makes scroll issue

maaaathis commented 1 year ago

Same here

igorwfaoro commented 12 months ago

same here

Nathan-Devery commented 9 months ago

yep same issue