profile-hover icon indicating copy to clipboard operation
profile-hover copied to clipboard

ES6 syntax not working in package

Open oznekenzo opened this issue 6 years ago • 4 comments

Not sure what happened in the setup / if es6+ was ever enabled

this is needed / helpful for creating functionality that prevents hover from going outside window

oznekenzo avatar May 20 '19 21:05 oznekenzo

Hi!

Which es6+ features is it that dosn’t work? The React component and the widget both uses a bit of es6+ like arrow functions, destructuring, async/await. Maybe polyfill is needed?

raksooo avatar May 21 '19 06:05 raksooo

I wasn't able to use arrow functions in the profile component, but thought it was really weird because I saw an async function right above.

oznekenzo avatar May 21 '19 16:05 oznekenzo

Weird! in ProfileHover.jsx? If I remember correctly there’s no arrow functions in that component but the components it imports from html.jsx uses arrow functions. The react component uses class syntax though. I’ll try it out when I find time for it :)

raksooo avatar May 21 '19 16:05 raksooo

Yes very weird. I found a workaround so not critical at the moment

oznekenzo avatar May 21 '19 21:05 oznekenzo