-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
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
Issue with SSR? #90
Comments
Looks like nano-css |
I'm getting this error trying to build normally. Is there a workaround? |
Do you still get that error if you include a specific hook? import myHook from 'react-use/lib/myHook'; |
same here using import { useWindowSize } from "react-use"; |
Just for others like me now coming to the thread – importing a specific hook like mentioned indeed solves the issue. I was using |
resolved. issue from |
# [6.0.0](v5.16.1...v6.0.0) (2019-03-26) ### Bug Fixes * 🐛 bump nano-css ([f1f36dc](f1f36dc)), closes [#90](#90) * 🐛 don't throw only in development ([f5faba5](f5faba5)) ### chore * 🤖 don't install only large dependencies ([6170067](6170067)) ### Features * 🎸 add {bound} option to useMouse ([9bb02a1](9bb02a1)) * 🎸 implement useClickAway, remove useOutsideClick ([a03143a](a03143a)) * 🎸 keep global state of all useLockBodyScroll hooks ([5dd10e9](5dd10e9)) * 🎸 move extra mouse functionality into useMouseHovered ([8b0580e](8b0580e)) * more precise size for useMouse ([b887075](b887075)) ### BREAKING CHANGES * 🧨 error is logged instead of thrown in development environment * 🧨 useOutsideClick is now useClickAway * 🧨 useCallbag hook is removed, some hooks KeyboardJS and Rebound installed separately
🎉 This issue has been resolved in version 6.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I tried to use the package on next.js and it throws the following error:
The text was updated successfully, but these errors were encountered: