Skip to content
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

Flow cannot resolve react-native modules #19797

Closed
3 tasks done
ovidiuch opened this issue Jun 19, 2018 · 1 comment
Closed
3 tasks done

Flow cannot resolve react-native modules #19797

ovidiuch opened this issue Jun 19, 2018 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ovidiuch
Copy link

Environment

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.5
      CPU: x64 Intel(R) Core(TM) m5-6Y54 CPU @ 1.10GHz
      Memory: 182.06 MB / 8.00 GB
      Shell: 5.2 - /usr/local/bin/zsh
    Binaries:
      Node: 8.11.2 - /usr/local/Cellar/node@8/8.11.2/bin/node
      Yarn: 1.7.0 - /usr/local/bin/yarn
      npm: 5.6.0 - /usr/local/Cellar/node@8/8.11.2/bin/npm
      Watchman: 4.7.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
    IDEs:
      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    npmPackages:
      react-native: ^0.56.0-rc.2 => 0.56.0-rc.2 

I tried with both 0.55.4 and 0.56.0-rc.2.

Description

Installing the latest react-native with the latest flow-bin yields type errors for every require call inside node_modules/react-native/Libraries/react-native/react-native-implementation.js

Cannot resolve module Alert.
Cannot resolve module AlertIOS.
...

screenshot 2018-06-19 09 10 37

Reproducible Demo

https://github.com/skidding/react-native-flow

The solution might be obvious, but I looked for it in many places and couldn't find it. Thanks!

@elicwhite
Copy link
Member

Duplicate of #19766. The fix has landed but a new version hasn’t been cut yet. You can use the fix to the flowconfig from that issue.

@facebook facebook locked as resolved and limited conversation to collaborators Jun 19, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants