We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! I'm trying to use wowjs in React app and everything was fine, until I moved the project to SSR. Since on server we have no window object it says:
/client/node_modules/wowjs/dist/wow.js:336 if ('requestAnimationFrame' in window) { ^ ReferenceError: window is not defined
Is there any possibility to review the lib and include SSR support?
The text was updated successfully, but these errors were encountered:
wow is deprecated in favour of aos, and when building a react application you should always look for modern libraries, and avoid legacy ones that predate React eg: https://github.com/researchgate/react-intersection-observer/blob/master/README.md
Sorry, something went wrong.
You can also conditionally import wow, based on process.browser
process.browser
No branches or pull requests
Hi!
I'm trying to use wowjs in React app and everything was fine, until I moved the project to SSR.
Since on server we have no window object it says:
Is there any possibility to review the lib and include SSR support?
The text was updated successfully, but these errors were encountered: