jsonkao / react-scrollama

Simple scrollytelling with the IntersectionObserver in React.
https://jsonkao.github.io/react-scrollama
MIT License
390 stars 30 forks source link

ReferenceError: regeneratorRuntime is not defined #38

Closed cedricdelpoux closed 4 years ago

cedricdelpoux commented 4 years ago

When building a Gatsby site (using Server Side Rendering) I got this error:

ReferenceError: regeneratorRuntime is not defined
node_modules/react-scrollama/dist/index.es.js:594:1
jsonkao commented 4 years ago

I think this error can be resolved by removing old/unnecessary async/await code.

jsonkao commented 4 years ago

@cedricdelpoux this is fixed in react-scrollama@2.2.7.

cedricdelpoux commented 4 years ago

Thank you for helping 👏🏻 You are very fast 🚀

jsonkao commented 4 years ago

No problem :)