cyntler / hamburger-react

Animated hamburger menu icons for React.js weighs only 1.5 KB.
https://hamburger-react.netlify.app
MIT License
963 stars 36 forks source link

Spread syntax fails on Edge #33

Closed xedef closed 3 years ago

xedef commented 3 years ago

Spread operator is not supported on Microsoft Edge and lib fails with following error:

{
  "description": "Expected identifier, string or number",
  "message": "Expected identifier, string or number",
  "number": -2146827260,
  "stack": "SyntaxError: Expected identifier, string or number at ./node_modules/hamburger-react/dist-esm/Tilt.js[...]"
}
xedef commented 3 years ago

My bad. I realized that I downloaded a VM with Edge legacy version, so I'm closing the ticket.

Just in case anyone bumps into this and still wants to fix it, this solution worked for me.