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
Can't resolve 'react-router-dom' #366
Comments
Hi @lukasoppermann, thanks for opening this issue but looks like you're importing the entire library from You should import only hooks that you're using, follow the documentation examples |
@lukasoppermann please close the issue if it's solved ;) |
Did this change "recently"? Anyway, that of course helped. Thank you very much. |
mh, yes and no... the I will probably be deprecating the index file soon as it causes more troubles than anything |
This causes issues for people using this lib on platforms like react-native. While it's true it can be fixed by importing each hook separately from their own file it is an inconvenient breaking change and required us to fix quite a few components. |
+1, not usable on React native at the moment. |
Don't think they'll be rolling back though. Can still be used by changing your imports, but still, annoying breaking change. -import { usePreviousValue } from 'beautiful-react-hooks'
+import usePreviousValue from 'beautiful-react-hooks/usePreviousValue' |
Hey,
I am getting the following error with Next.js@12, react@18 and beautiful-react-hooks@3.2.3
Header.tsx
has the following import statement:Please let me know what other info I can provide. I don't know what I am doing wrong here.
The text was updated successfully, but these errors were encountered: