Skip to content

[Flow.js] Invalid .flowconfig template #24853

Description

@retyui

React Native version:

  React Native Environment Info:
    System:
      OS: Linux 4.15 Linux Mint 19.1 (Tessa)
      CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
      Memory: 416.16 MB / 15.51 GB
      Shell: 2.7.1 - /usr/bin/fish
    Binaries:
      Node: 10.15.3 - /usr/bin/node
      Yarn: 1.15.2 - ~/.yarn/bin/yarn
      npm: 6.9.0 - /usr/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.8 => 0.59.8 
    npmGlobalPackages:
      create-react-native-web-app: 0.1.14
      react-native-cli: 2.0.1
      react-native-create-library: 3.1.2

Steps To Reproduce

react-native init flowBag --version=0.59.8
cd flowBag
yarn add flow-bin@0.92.0 -D

printf "// @flow\nimport a  from './a'" > App.js
printf "// @flow\nexport default () => true;" > a.ios.js
printf "// @flow\nexport default () => false;" > a.android.js

yarn flow
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ App.js:2:17

Cannot resolve module ./a.

     1 // @flow 
     2  import a  from './a'

Expected

Flow can resolve module a;

Actual

Now how you can see above flow resolve strange path is ./a.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions