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 errors: "To get the type of a value use typeof" #21898

Closed
3 tasks done
jjenzz opened this issue Oct 22, 2018 · 4 comments
Closed
3 tasks done

Flow errors: "To get the type of a value use typeof" #21898

jjenzz opened this issue Oct 22, 2018 · 4 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@jjenzz
Copy link

jjenzz commented Oct 22, 2018

Environment

React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
      Memory: 1.08 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.3.0 - ~/.nvm/versions/node/v10.3.0/bin/node
      Yarn: 1.6.0 - ~/.yarn/bin/yarn
      npm: 6.1.0 - ~/.nvm/versions/node/v10.3.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
    IDEs:
      Android Studio: 3.1 AI-173.4819257
      Xcode: 10.0/10A255 - /usr/bin/xcodebuild
    npmPackages:
      @storybook/react-native: ^3.4.11 => 3.4.11
      react: 16.5.0 => 16.5.0
      react-native: 0.57.2 => 0.57.2
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

image

Reproducible Demo

  1. Initialise new react native project with flow
  2. yarn flow check
@jjenzz
Copy link
Author

jjenzz commented Oct 22, 2018

I'm temporarily working around this by adding these files to my [untyped] option in .flowconfig.

[untyped]
.*/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js
.*/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js
.*/node_modules/react-native/Libraries/Components/View/ViewPropTypes.js

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Nov 6, 2018
@nate-whil
Copy link

nate-whil commented Jan 10, 2019

The issue still exists with the files specified by @jjenzz with "react-native": "0.57.8" when upgrading from "flow-bin": "0.81.0" to "flow-bin": "0.82.0"

@facebook facebook locked as resolved and limited conversation to collaborators Nov 6, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants