herrethan / react-confetti-explosion

A lightweight css-animation based confetti exploder for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

makeStyles.js:156 Uncaught TypeError: Cannot read properties of undefined (reading 'refs')

estoylive opened this issue · comments

not sure what's going on here

having the same issue

I see that it happens with <React.StrictMode>. I'm trying to see if there is a workaround to avoid the error.

It depends on a deprecated library.

"dependencies": {
    "@material-ui/styles": "^4.11.5",
    "lodash": "^4.17.21"
  },

Screenshot 2022-11-29 at 3 20 07 PM

I was able to circumvent this by turning off strict mode. Not sure how sound of a solution this is but it works for now.

It depends on a deprecated library.

"dependencies": {
    "@material-ui/styles": "^4.11.5",
    "lodash": "^4.17.21"
  },

Screenshot 2022-11-29 at 3 20 07 PM

I sent a PR to update the libraries (#7)

I didn't get any feedback about the PR sent. So, I created a forked package with the updates, https://www.npmjs.com/package/confetti-explosion-react.

Thanks all! Closing this as we're now using react-jss for styles. The latest changes here.