No options for key window

I am having some problems with responding to my native. This continues to give me the following error.

error

What could be the reason for this?

+8
reactjs react-native
source share
9 answers

There seems to be a problem with react-router-flux since a few days.

You probably need to roll back to version 3.38.0 before the error was introduced.

 yarn add react-native-router-flux@3.38.0 

If this does not work, some people also said that you may need to close all your terminals, delete the build folder, and clear the npm cache.

+1
source share

Try closing the terminal by uninstalling ios / build and running it again. I had the same problem, but now it works.

+3
source share

I got this error when I started another reaction-based project, but forgot to close the terminal window where React Packager was working. As soon as I closed the reactive packer terminal window and ran react-native run-android again, the error disappeared.

+1
source share

Check if the old package manager is running from another project. If so, close it and run it again.

+1
source share

Close all terminals and after using the following command in the terminal npm cache clean

worked for me

+1
source share

"Close the terminal, repeat" worked for me. This seems to be a recent issue due to a native-native update.

0
source share

There is another way to solve this error, I am updating response-native-cli: 2.0.1 and it works for me.

0
source share

Use this Dimensions.get ('window'). Width

0
source share

For those who are faced with this. Check to confirm that the window passed to get () is the string Dimensions.get('window') .

0
source share

All Articles