-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
"Required module not found" with Flow #137
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
Comments
I don't really know enough about Flow to fix this. |
Mmm since react-redux isn't even typed, perhaps a better option would be to just add it in the ignore paths? If you feel adventurous you can even grab the declaration modules in here and try them so you can have the react-redux usage type checked (and |
Thanks guys. I had stupidly ignored every package.json in my project in .flowconfig, which caused all sorts of strange problems. Sorry for the noise. I'll check out those declaration files. |
Ran into this issue myself with the flow config of
Other modules seem to import correctly, but for some reason flow throws "not found" for |
Ah, my fix was to just create an empty stub and map to it:
|
@averyvery can you give a bit more detail on your approach? where did you put these files? |
@ericmasiello sure:
|
Also works: |
I'm experimenting with Flow, but I'm getting errors when importing react-redux:
I've made the error go away by adding this to .flowconfig:
This might by caused by facebook/flow#654. Maybe the error will go away when that issue is fixed. In the meantime, is there anything that could be done in react-redux to avoid the above work-around?
The text was updated successfully, but these errors were encountered: