Closed thisispaul closed 2 years ago
A bug seems to have been introduced when upgrading to version 2.3.0.
https://github.com/jsonkao/react-scrollama/blob/ba76c0284396ea46acee00cc2dddea522329b8bb/src/Scrollama.js#L46
Gatsby SSR doesn't like this line, it just needs an if to check that window exists really (https://www.gatsbyjs.com/docs/debugging-html-builds/).
A bug seems to have been introduced when upgrading to version 2.3.0.
https://github.com/jsonkao/react-scrollama/blob/ba76c0284396ea46acee00cc2dddea522329b8bb/src/Scrollama.js#L46
Gatsby SSR doesn't like this line, it just needs an if to check that window exists really (https://www.gatsbyjs.com/docs/debugging-html-builds/).