Newly initialized react native project has flow errors
See original GitHub issueDescription
The long and short of it is, Iβm getting flow errors on brand new projects created with the react native cli (version 2.0.1). Do I have a weird version mismatch or something?
Reproduction
drew.wyatt$ react-native --version
react-native-cli: 2.0.1
react-native: 0.39.2
drew.wyatt$ flow version
Flow, a static type checker for JavaScript, version 0.35.0
Drew-Wyatt:Projects drew.wyatt$ react-native init Whatever
This will walk you through creating a new React Native project in /Users/drew.wyatt/Projects/Whatever
Using yarn v0.16.1
Installing react-native...
yarn add v0.16.1
info No lockfile found.
[1/4] π Resolving packages...
warning react-native > xcode > node-uuid@1.4.7: use uuid module instead
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
warning Unmet peer dependency "react@~15.4.0-rc.4".
[4/4] π Building fresh packages...
success Saved lockfile.
success Saved 466 new dependencies.
ββ absolute-path@0.0.0
ββ accepts@1.2.13
β ββ mime-db@1.25.0
β ββ mime-types@2.1.13
ββ align-text@0.1.4
ββ ansi-escapes@1.4.0
ββ ansi-regex@2.0.0
ββ ansi-styles@2.2.1
ββ ansi@0.3.1
ββ are-we-there-yet@1.1.2
ββ array-differ@1.0.0
ββ array-filter@0.0.1
ββ array-find-index@1.0.2
ββ array-map@0.0.0
ββ array-reduce@0.0.0
ββ array-union@1.0.2
ββ array-uniq@1.0.3
ββ arrify@1.0.1
ββ art@0.10.1
ββ asap@2.0.5
ββ async@2.1.4
ββ babel-code-frame@6.20.0
ββ babel-core@6.21.0
β ββ json5@0.5.1
ββ babel-generator@6.21.0
ββ babel-helper-builder-react-jsx@6.21.1
ββ babel-helper-call-delegate@6.18.0
ββ babel-helper-define-map@6.18.0
ββ babel-helper-function-name@6.18.0
ββ babel-helper-get-function-arity@6.18.0
ββ babel-helper-hoist-variables@6.18.0
ββ babel-helper-optimise-call-expression@6.18.0
ββ babel-helper-regex@6.18.0
ββ babel-helper-replace-supers@6.18.0
ββ babel-helpers@6.16.0
ββ babel-messages@6.8.0
ββ babel-plugin-check-es2015-constants@6.8.0
ββ babel-plugin-external-helpers@6.18.0
ββ babel-plugin-react-transform@2.0.2
ββ babel-plugin-syntax-async-functions@6.13.0
ββ babel-plugin-syntax-class-properties@6.13.0
ββ babel-plugin-syntax-flow@6.18.0
ββ babel-plugin-syntax-jsx@6.18.0
ββ babel-plugin-syntax-object-rest-spread@6.13.0
ββ babel-plugin-syntax-trailing-function-commas@6.20.0
ββ babel-plugin-transform-class-properties@6.19.0
ββ babel-plugin-transform-es2015-arrow-functions@6.8.0
ββ babel-plugin-transform-es2015-block-scoped-functions@6.8.0
ββ babel-plugin-transform-es2015-block-scoping@6.21.0
ββ babel-plugin-transform-es2015-classes@6.18.0
ββ babel-plugin-transform-es2015-computed-properties@6.8.0
ββ babel-plugin-transform-es2015-destructuring@6.19.0
ββ babel-plugin-transform-es2015-for-of@6.18.0
ββ babel-plugin-transform-es2015-function-name@6.9.0
ββ babel-plugin-transform-es2015-literals@6.8.0
ββ babel-plugin-transform-es2015-modules-commonjs@6.18.0
ββ babel-plugin-transform-es2015-object-super@6.8.0
ββ babel-plugin-transform-es2015-parameters@6.21.0
ββ babel-plugin-transform-es2015-shorthand-properties@6.18.0
ββ babel-plugin-transform-es2015-spread@6.8.0
ββ babel-plugin-transform-es2015-sticky-regex@6.8.0
ββ babel-plugin-transform-es2015-template-literals@6.8.0
ββ babel-plugin-transform-es2015-unicode-regex@6.11.0
ββ babel-plugin-transform-es3-member-expression-literals@6.8.0
ββ babel-plugin-transform-es3-property-literals@6.8.0
ββ babel-plugin-transform-flow-strip-types@6.21.0
ββ babel-plugin-transform-object-assign@6.8.0
ββ babel-plugin-transform-object-rest-spread@6.20.2
ββ babel-plugin-transform-react-display-name@6.8.0
ββ babel-plugin-transform-react-jsx-source@6.9.0
ββ babel-plugin-transform-react-jsx@6.8.0
ββ babel-plugin-transform-regenerator@6.21.0
ββ babel-plugin-transform-strict-mode@6.18.0
ββ babel-polyfill@6.20.0
β ββ regenerator-runtime@0.10.1
ββ babel-preset-es2015-node@6.1.1
ββ babel-preset-fbjs@2.1.0
ββ babel-preset-react-native@1.9.1
ββ babel-register@6.18.0
ββ babel-runtime@6.20.0
β ββ regenerator-runtime@0.10.1
ββ babel-template@6.16.0
ββ babel-traverse@6.21.0
ββ babel-types@6.21.0
ββ babylon@6.14.1
ββ balanced-match@0.4.2
ββ base64-js@1.2.0
ββ base64-url@1.2.1
ββ basic-auth-connect@1.0.0
ββ basic-auth@1.0.4
ββ batch@0.5.3
ββ beeper@1.1.1
ββ body-parser@1.13.3
β ββ debug@2.2.0
β ββ iconv-lite@0.4.11
β ββ ms@0.7.1
ββ bplist-creator@0.0.4
ββ bplist-parser@0.0.6
ββ brace-expansion@1.1.6
ββ bser@1.0.2
ββ buffer-shims@1.0.0
ββ builtin-modules@1.1.1
ββ bytes@2.1.0
ββ camelcase-keys@2.1.0
β ββ camelcase@2.1.1
ββ camelcase@3.0.0
ββ center-align@0.1.3
ββ chalk@1.1.3
ββ cli-cursor@1.0.2
ββ cli-width@2.1.0
ββ cliui@3.2.0
ββ clone-stats@0.0.1
ββ clone@1.0.2
ββ code-point-at@1.1.0
ββ commander@2.9.0
ββ compressible@2.0.9
β ββ mime-db@1.25.0
ββ compression@1.5.2
β ββ debug@2.2.0
β ββ ms@0.7.1
ββ concat-map@0.0.1
ββ connect-timeout@1.6.2
β ββ debug@2.2.0
β ββ ms@0.7.1
ββ connect@2.30.2
β ββ debug@2.2.0
β ββ ms@0.7.1
ββ content-type@1.0.2
ββ convert-source-map@1.3.0
ββ cookie-parser@1.3.5
ββ cookie-signature@1.0.6
ββ cookie@0.1.3
ββ core-js@2.4.1
ββ core-util-is@1.0.2
ββ crc@3.3.0
ββ cross-spawn@3.0.1
ββ csrf@3.0.4
β ββ base64-url@1.3.3
β ββ uid-safe@2.1.3
ββ csurf@1.8.3
ββ currently-unhandled@0.4.1
ββ dateformat@1.0.12
ββ debug@2.4.5
ββ decamelize@1.2.0
ββ delegates@1.0.0
ββ denodeify@1.2.1
ββ depd@1.0.1
ββ destroy@1.0.4
ββ detect-indent@4.0.0
ββ dom-walk@0.1.1
ββ duplexer2@0.0.2
β ββ isarray@0.0.1
β ββ readable-stream@1.1.14
ββ ee-first@1.1.1
ββ encoding@0.1.12
ββ errno@0.1.4
ββ error-ex@1.3.0
ββ errorhandler@1.4.3
β ββ accepts@1.3.3
β ββ mime-db@1.25.0
β ββ mime-types@2.1.13
β ββ negotiator@0.6.1
ββ escape-html@1.0.3
ββ escape-string-regexp@1.0.5
ββ esutils@2.0.2
ββ etag@1.7.0
ββ event-target-shim@1.1.1
ββ exec-sh@0.2.0
ββ exit-hook@1.1.1
ββ express-session@1.11.3
β ββ debug@2.2.0
β ββ ms@0.7.1
ββ fancy-log@1.2.0
ββ fb-watchman@1.9.0
ββ fbjs-scripts@0.7.1
β ββ babel-preset-fbjs@1.0.0
β ββ core-js@1.2.7
ββ fbjs@0.8.7
β ββ core-js@1.2.7
ββ figures@1.7.0
ββ finalhandler@0.4.0
β ββ debug@2.2.0
β ββ escape-html@1.0.2
β ββ ms@0.7.1
ββ find-up@1.1.2
ββ fresh@0.3.0
ββ fs-extra@0.26.7
ββ fs.realpath@1.0.0
ββ gauge@1.2.7
ββ get-caller-file@1.0.2
ββ get-stdin@4.0.1
ββ glob@5.0.15
ββ global@4.3.1
ββ globals@9.14.0
ββ glogg@1.0.0
ββ graceful-fs@4.1.11
ββ graceful-readlink@1.0.1
ββ gulp-util@3.0.7
β ββ object-assign@3.0.0
ββ gulplog@1.0.0
ββ has-ansi@2.0.0
ββ has-gulplog@0.1.0
ββ has-unicode@2.0.1
ββ hoek@2.16.3
ββ home-or-tmp@2.0.0
ββ hosted-git-info@2.1.5
ββ http-errors@1.3.1
ββ iconv-lite@0.4.15
ββ image-size@0.3.5
ββ immutable@3.7.6
ββ imurmurhash@0.1.4
ββ indent-string@2.1.0
ββ inflight@1.0.6
ββ inherits@2.0.3
ββ inquirer@0.12.0
ββ invariant@2.2.2
ββ invert-kv@1.0.0
ββ is-arrayish@0.2.1
ββ is-buffer@1.1.4
ββ is-builtin-module@1.0.0
ββ is-finite@1.0.2
ββ is-fullwidth-code-point@1.0.0
ββ is-stream@1.1.0
ββ is-utf8@0.2.1
ββ isarray@1.0.0
ββ isemail@1.2.0
ββ isexe@1.1.2
ββ isomorphic-fetch@2.2.1
β ββ whatwg-fetch@2.0.1
ββ jest-haste-map@17.0.3
ββ joi@6.10.1
ββ js-tokens@2.0.0
ββ jsesc@1.3.0
ββ json-stable-stringify@1.0.1
ββ json5@0.4.0
ββ jsonfile@2.4.0
ββ jsonify@0.0.0
ββ kind-of@3.1.0
ββ klaw@1.3.1
ββ lazy-cache@1.0.4
ββ lcid@1.0.0
ββ load-json-file@1.1.0
ββ lodash._basecopy@3.0.1
ββ lodash._basetostring@3.0.1
ββ lodash._basevalues@3.0.0
ββ lodash._getnative@3.9.1
ββ lodash._isiterateecall@3.0.9
ββ lodash._reescape@3.0.0
ββ lodash._reevaluate@3.0.0
ββ lodash._reinterpolate@3.0.0
ββ lodash._root@3.0.1
ββ lodash.escape@3.2.0
ββ lodash.isarguments@3.1.0
ββ lodash.isarray@3.0.4
ββ lodash.keys@3.1.2
ββ lodash.pad@4.5.1
ββ lodash.padend@4.6.1
ββ lodash.padstart@4.6.1
ββ lodash.restparam@3.6.1
ββ lodash.template@3.6.2
ββ lodash.templatesettings@3.1.1
ββ lodash@4.17.2
ββ longest@1.0.1
ββ loose-envify@1.3.0
ββ loud-rejection@1.6.0
ββ lru-cache@4.0.2
ββ makeerror@1.0.11
ββ map-obj@1.0.1
ββ media-typer@0.3.0
ββ meow@3.7.0
ββ merge@1.2.0
ββ method-override@2.3.7
β ββ debug@2.3.3
β ββ vary@1.1.0
ββ methods@1.1.2
ββ mime-db@1.23.0
ββ mime-types@2.1.11
ββ mime@1.3.4
ββ min-document@2.19.0
ββ minimatch@3.0.3
ββ minimist@1.2.0
ββ mkdirp@0.5.1
β ββ minimist@0.0.8
ββ moment@2.17.1
ββ morgan@1.6.1
β ββ debug@2.2.0
β ββ ms@0.7.1
ββ ms@0.7.2
ββ multimatch@2.1.0
ββ multiparty@3.3.2
β ββ isarray@0.0.1
β ββ readable-stream@1.1.14
ββ multipipe@0.1.2
ββ mute-stream@0.0.5
ββ negotiator@0.5.3
ββ node-fetch@1.6.3
ββ node-int64@0.4.0
ββ node-uuid@1.4.7
ββ normalize-package-data@2.3.5
ββ npmlog@2.0.4
ββ number-is-nan@1.0.1
ββ object-assign@4.1.0
ββ on-finished@2.3.0
ββ on-headers@1.0.1
ββ once@1.4.0
ββ onetime@1.1.0
ββ opn@3.0.3
ββ optimist@0.6.1
β ββ minimist@0.0.10
β ββ wordwrap@0.0.3
ββ options@0.0.6
ββ os-homedir@1.0.2
ββ os-locale@1.4.0
ββ os-tmpdir@1.0.2
ββ parse-json@2.2.0
ββ parseurl@1.3.1
ββ path-exists@2.1.0
ββ path-is-absolute@1.0.1
ββ path-type@1.1.0
ββ pause@0.1.0
ββ pegjs@0.9.0
ββ pify@2.3.0
ββ pinkie-promise@2.0.1
ββ pinkie@2.0.4
ββ plist@1.2.0
β ββ base64-js@0.0.8
ββ private@0.1.6
ββ process-nextick-args@1.0.7
ββ process@0.5.2
ββ progress@1.1.8
ββ promise@7.1.1
ββ prr@0.0.0
ββ pseudomap@1.0.2
ββ qs@4.0.0
ββ random-bytes@1.0.0
ββ range-parser@1.0.3
ββ raw-body@2.1.7
β ββ bytes@2.4.0
β ββ iconv-lite@0.4.13
ββ react-clone-referenced-element@1.0.1
ββ react-deep-force-update@1.0.1
ββ react-native@0.39.2
ββ react-proxy@1.1.8
ββ react-timer-mixin@0.13.3
ββ react-transform-hmr@1.0.4
ββ read-pkg-up@1.0.1
ββ read-pkg@1.1.0
ββ readable-stream@2.2.2
ββ readline2@1.0.1
ββ rebound@0.0.13
ββ redent@1.0.0
ββ regenerate@1.3.2
ββ regenerator-runtime@0.9.6
ββ regenerator-transform@0.9.8
ββ regexpu-core@2.0.0
ββ regjsgen@0.2.0
ββ regjsparser@0.1.5
β ββ jsesc@0.5.0
ββ repeat-string@1.6.1
ββ repeating@2.0.1
ββ replace-ext@0.0.1
ββ require-directory@2.1.1
ββ require-main-filename@1.0.1
ββ response-time@2.3.2
β ββ depd@1.1.0
ββ restore-cursor@1.0.1
ββ right-align@0.1.3
ββ rimraf@2.5.4
β ββ glob@7.1.1
ββ rndm@1.2.0
ββ run-async@0.1.0
ββ rx-lite@3.1.2
ββ sane@1.4.1
ββ sax@1.1.6
ββ semver@5.3.0
ββ send@0.13.2
β ββ debug@2.2.0
β ββ depd@1.1.0
β ββ ms@0.7.1
β ββ statuses@1.2.1
ββ serve-favicon@2.3.2
ββ serve-index@1.7.3
β ββ debug@2.2.0
β ββ mime-db@1.25.0
β ββ mime-types@2.1.13
β ββ ms@0.7.1
ββ serve-static@1.10.3
ββ set-blocking@2.0.0
ββ setimmediate@1.0.5
ββ shell-quote@1.6.1
ββ signal-exit@3.0.2
ββ simple-plist@0.1.4
ββ slash@1.0.0
ββ slide@1.1.6
ββ source-map-support@0.4.6
ββ source-map@0.5.6
ββ sparkles@1.0.0
ββ spdx-correct@1.0.2
ββ spdx-expression-parse@1.0.4
ββ spdx-license-ids@1.2.2
ββ stacktrace-parser@0.1.4
ββ statuses@1.3.1
ββ stream-buffers@0.2.6
ββ stream-counter@0.2.0
β ββ isarray@0.0.1
β ββ readable-stream@1.1.14
ββ string_decoder@0.10.31
ββ string-width@1.0.2
ββ strip-ansi@3.0.1
ββ strip-bom@2.0.0
ββ strip-indent@1.0.1
ββ supports-color@2.0.0
ββ temp@0.8.3
β ββ rimraf@2.2.8
ββ throat@3.0.0
ββ through@2.3.8
ββ through2@2.0.3
ββ time-stamp@1.0.1
ββ tmpl@1.0.4
ββ to-fast-properties@1.0.2
ββ topo@1.1.0
ββ trim-newlines@1.0.0
ββ tsscmp@1.0.5
ββ type-is@1.6.14
β ββ mime-db@1.25.0
β ββ mime-types@2.1.13
ββ ua-parser-js@0.7.12
ββ uglify-js@2.7.5
β ββ async@0.2.10
β ββ camelcase@1.2.1
β ββ cliui@2.1.0
β ββ window-size@0.1.0
β ββ wordwrap@0.0.2
β ββ yargs@3.10.0
ββ uglify-to-browserify@1.0.2
ββ uid-safe@2.0.0
ββ ultron@1.0.2
ββ unpipe@1.0.0
ββ util-deprecate@1.0.2
ββ utils-merge@1.0.0
ββ validate-npm-package-license@3.0.1
ββ vary@1.0.1
ββ vhost@3.0.2
ββ vinyl@0.5.3
ββ walker@1.0.7
ββ watch@0.10.0
ββ whatwg-fetch@1.1.1
ββ which-module@1.0.0
ββ which@1.2.12
ββ window-size@0.2.0
ββ wordwrap@1.0.0
ββ worker-farm@1.3.1
ββ wrap-ansi@2.1.0
ββ wrappy@1.0.2
ββ write-file-atomic@1.2.0
ββ ws@1.1.1
ββ xcode@0.8.9
ββ xmlbuilder@4.0.0
β ββ lodash@3.10.1
ββ xmldoc@0.4.0
ββ xmldom@0.1.27
ββ xtend@4.0.1
ββ y18n@3.2.1
ββ yallist@2.0.0
ββ yargs-parser@4.2.0
ββ yargs@6.5.0
β¨ Done in 7.54s.
Setting up new React Native app in /Users/drew.wyatt/Projects/Whatever
Installing React...
Installing Jest...
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN prefer global marked@0.3.6 should be installed with -g
To run your app on iOS:
react-native run-ios
- or -
Open ios/Whatever.xcodeproj in Xcode
Hit the Run button
To run your app on Android:
Have an Android emulator running (quickest way to get started), or a device connected
react-native run-android
Drew-Wyatt:Projects drew.wyatt$ cd Whatever/
Drew-Wyatt:Whatever drew.wyatt$ flow
Launching Flow server for /Users/drew.wyatt/Projects/Whatever
Spawned flow server (pid=99638)
Logs will go to /private/tmp/flow/zSUserszSdrew.wyattzSProjectszSWhatever.log
node_modules/react-native/local-cli/server/util/inspectorProxy.js:43
43: const querystring = require('querystring');
^^^^^^^^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/querystring/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/local-cli/server/util/inspectorProxy.js:43
43: const querystring = require('querystring');
^^^^^^^^^^^^^^^^^^^^^^ querystring. Required module not found
node_modules/react-native/local-cli/server/util/inspectorProxy.js:45
45: const parseUrl = require('url').parse;
^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/url/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/local-cli/util/Config.js:13
13: const assert = require('assert');
^^^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/assert/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/packager/react-packager/src/Bundler/index.js:14
14: const assert = require('assert');
^^^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/assert/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/packager/react-packager/src/JSTransformer/index.js:19
19: const util = require('util');
^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/util/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/packager/react-packager/src/Logger/index.js:17
17: const {EventEmitter} = require('events');
^^^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/events/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/packager/react-packager/src/node-haste/fastfs.js:17
17: const {EventEmitter} = require('events');
^^^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/events/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
node_modules/react-native/packager/react-packager/src/node-haste/index.js:33
33: const util = require('util');
^^^^^^^^^^^^^^^ This modules resolves to "<<PROJECT_ROOT>>/../../node_modules/util/package.json", which is outside both your root directory and all of the entries in the [include] section of your .flowconfig. You should either add this directory to the [include] section of your .flowconfig, move your .flowconfig file higher in the project directory tree, or move this package under your Flow root directory.
Found 9 errors
Solution
Right now Iβm just not using flow and ignoring the issues. Iβve tried switching some versions around but keep coming up empty handed.
Additional Information
- React Native CLI version: 2.0.1
- React Native version: 0.39.2
- Flow version: 0.35.0
- Platform: Development Environment
- Operating System: macOS Sierra Version 10.12.2
Issue Analytics
- State:
- Created 7 years ago
- Reactions:10
- Comments:26 (5 by maintainers)
Top Results From Across the Web
flow throws errors with a new react-native init project
Hey , remove this project and then use my line react-native init Sampler. Go to that folder, cd Sampler. Run the command to...
Read more >Addressing common errors in React Native - LogRocket Blog
Explore common React Native errors such as "command not found" and learn about their causes and potential solutions.
Read more >A guide to Flow in React Native - JavaScript in Plain English
We start by initializing a new React Native project (without Expo) by running: npx react-native init flow in our terminal where 'flow' isΒ ......
Read more >Installation in React Native and bare projects
Learn how to configure development builds for bare React Native projects.
Read more >React Native | WebStorm Documentation - JetBrains
WebStorm also provides code completion for React and Flow symbols. ... Click Create New Project on the Welcome screen or select File |...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Iβm having issues using numerous flow versions with RN as well. Hundreds of errors in
node_modules/react-native
each time with numerous different versions of flow including the latest.I will probably just rely on PropTypes for similar effect in the meantime, but itβs pretty bad practice to even mention a tool like Flow (see https://facebook.github.io/react/docs/typechecking-with-proptypes.html) when there are so many errors out of the box in the core project and no clear way to circumvent them.
This is not the first ticket of this nature and past tickets have even claimed that upgrading to RN 0.42 will fix the issue, but I have not found that to be true as I am on 0.42 and have tried several things including using the .flowconfig in the RN project itself and the Flow version listed therein.
Perhaps Iβm misunderstanding something about Flow, but if not, please either treat this issue more seriously (maybe add a flow run to your CI?) or stop promoting Flow until your own project passes or at least suppresses your own errors. This has been a waste of time for everyone who has come across the string of tickets raising this issue.
+1