-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
react-native: Required module not found #3875
Comments
Well, I managed to declare a 'react-native' module definition(libdef), this is a workaround, I prefer a general solution(if there is any?). |
Could you share you solution, I am getting this for all my modules that i import into files. |
@vTrip For example: Extend flowconfig like this .flowconfig and then create stub like this: modulesStub.js |
This should work
to generate custom regex goto https://dsslimshaddy.github.io/flowignore/ |
Seeing this issue with flow 0.53.1 as well. Any idea what's causing it? |
Getting the same with flow 0.53.1 and react-native August. I have |
Here's a quick solution that works for me to ignore the flow related errors for react-native
cd my-awesome-project
mkdir flow-typed
touch react-native.js
declare module 'react-native' {
declare module.exports: any;
} |
@divyanshu013 You forgot mention that there is needed also:
;.flowconfig file
[include]
[libs]
; Your other libs, usually followed:
; node_modules/react-native/Libraries/react-native/react-native-interface.js
; node_modules/react-native/flow/
; node_modules/expo/flow/
flow-typed/ After that flow will known, that should check flow-typed declarations for all "missed" libs |
Actually the above solution worked for me at the point of writing. I haven't used flow since then so a lot might have changed. Thanks for updating |
@divyanshu013 I think it's a good solution, maybe react-native team can give us a library defination in https://github.com/flowtype/flow-typed |
Probably quite obvious by now, but still an issue with v0.63.0 using React-Native 0.53.0's .flowconfig. |
It looks like someone wrote up a Flow libdef for Note – Based on the comments in that gist, there do seem to be some minor errors with that libdef that need to be fixed though. |
.flowconfig
index.js
Maybe my libs settings for flowconfig is broken?
The text was updated successfully, but these errors were encountered: