I am having some issues with react native. It keeps giving me the following error.
What could be causing this?
Try closing terminal, deleting ios/build and run again. I had the same issue but now its working.
For anyone that runs into this. Check to confirm the window passed to get() is a string Dimensions.get('window')
.
There apparently is an issue with react-router-flux
since a few days.
You probably need to rollback to the 3.38.0
version before the bug was introduced.
yarn add [email protected]
If it doesn't work, some people also said that you might need to close all your terminals, delete your build folder and clear your npm cache.
I got this error when I ran a different react-native project, but had forgotten to close the terminal window that was running the React Packager. Once I closed the React Packager terminal window and re-ran react-native run-android
the error went away.
Check if you have an old package manager running from a different project. If so, close it and run again.
Close all terminal and after use following command in terminal npm cache clean
worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With