Skip to content

Circle CI eslint failures #16307

@hramos

Description

@hramos

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Circle CI, Node 8 image.

Steps to Reproduce

Run npm run lint on the root of the repo, or look at Circle CI results (example).

Expected Behavior

Lint does not raise any errors.

Actual Behavior

> eslint .


/home/circleci/react-native/ContainerShip/scripts/run-android-ci-instrumentation-tests.js
   44:19  warning  Missing radix parameter                         radix
   74:11  warning  'testCount' is assigned a value but never used  no-unused-vars
  121:4   warning  Expected error to be handled                    handle-callback-err

/home/circleci/react-native/IntegrationTests/AppEventsTest.js
  42:5  warning  Do not use setState in componentDidMount  react/no-did-mount-set-state

/home/circleci/react-native/IntegrationTests/ImageSnapshotTest.js
  18:3  warning  'View' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/IntegrationTests/LayoutEventsTest.js
   98:5   warning  Using this.refs is deprecated                          react/no-string-refs
  108:5   warning  Using this.refs is deprecated                          react/no-string-refs
  111:5   warning  Using this.refs is deprecated                          react/no-string-refs
  143:15  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  145:13  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  150:17  warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/IntegrationTests/PromiseTest.js
  40:13  warning  Arrow function should not return assignment  no-return-assign
  41:14  warning  Arrow function should not return assignment  no-return-assign
  47:13  warning  Arrow function should not return assignment  no-return-assign
  48:14  warning  Arrow function should not return assignment  no-return-assign

/home/circleci/react-native/IntegrationTests/WebSocketTest.js
   27:7  warning  'WS_STATES' is assigned a value but never used  no-unused-vars
   59:9  warning  't' is assigned a value but never used          no-unused-vars
  130:9  warning  Unexpected alias 'component' for 'this'         consistent-this
  142:9  warning  Unexpected alias 'component' for 'this'         consistent-this
  154:9  warning  Unexpected alias 'component' for 'this'         consistent-this

/home/circleci/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js
  34:5  warning  Trailing spaces not allowed  no-trailing-spaces

/home/circleci/react-native/Libraries/Components/AppleTV/TVEventHandler.ios.js
  14:7  warning  'React' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
  170:12  warning  Using this.refs is deprecated  react/no-string-refs
  282:39  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js
  613:5  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Components/Picker/PickerAndroid.android.js
  136:9  warning  Using this.refs is deprecated  react/no-string-refs
  137:7  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Components/Picker/PickerIOS.ios.js
  69:16  warning  Arrow function should not return assignment  no-return-assign

/home/circleci/react-native/Libraries/Components/StatusBar/StatusBar.js
  59:6  warning  'DefaultProps' is defined but never used  no-unused-vars

/home/circleci/react-native/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js
  18:5  warning  'ReactNativeViewAttributes' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/Libraries/Components/Touchable/TouchableHighlight.js
  228:29  warning  Using this.refs is deprecated  react/no-string-refs
  239:29  warning  Using this.refs is deprecated  react/no-string-refs
  317:5   warning  Using this.refs is deprecated  react/no-string-refs
  318:5   warning  Using this.refs is deprecated  react/no-string-refs
  328:36  warning  Using this.refs is deprecated  react/no-string-refs
  329:7   warning  Using this.refs is deprecated  react/no-string-refs
  330:7   warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Components/Touchable/TouchableOpacity.js
  234:30  warning  Expected '===' and instead saw '=='  eqeqeq

/home/circleci/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.android.js
  157:12  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Components/WebView/WebView.android.js
  400:39  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Components/WebView/WebView.ios.js
  595:39  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Core/Devtools/setupDevtools.js
  20:6  warning  'DevToolsPlugin' is defined but never used  no-unused-vars

/home/circleci/react-native/Libraries/Experimental/Incremental.js
  96:6  warning  'DefaultProps' is defined but never used  no-unused-vars

/home/circleci/react-native/Libraries/Experimental/IncrementalExample.js
  61:5  warning  Do not use setState in componentDidMount  react/no-did-mount-set-state

/home/circleci/react-native/Libraries/Experimental/IncrementalPresenter.js
  69:7   warning  Using this.refs is deprecated                          react/no-string-refs
  90:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js
  20:6  warning  'DefaultProps' is defined but never used  no-unused-vars

/home/circleci/react-native/Libraries/Image/Image.android.js
  24:5  warning  'View' is assigned a value but never used                    no-unused-vars
  29:5  warning  'filterObject' is assigned a value but never used            no-unused-vars
  67:5  warning  'ImageViewAttributes' is assigned a value but never used     no-unused-vars
  78:5  warning  'ImageSpecificStyleKeys' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/Libraries/Interaction/__tests__/InteractionManager-test.js
  265:26  warning  'resolve' is already declared in the upper scope  no-shadow
  276:26  warning  'resolve' is already declared in the upper scope  no-shadow

/home/circleci/react-native/Libraries/Utilities/HMRClient.js
  109:17  warning  eval can be harmful  no-eval

/home/circleci/react-native/local-cli/core/__fixtures__/projects.js
  1:7  warning  'fs' is assigned a value but never used    no-unused-vars
  2:7  warning  'path' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/generator/copyProjectTemplateAndReplace.js
  101:22  warning  'path' is already declared in the upper scope  no-shadow

/home/circleci/react-native/local-cli/generator/promptSync.js
  14:21  warning  'savedinsert' is assigned a value but never used  no-unused-vars
  14:38  warning  'res' is defined but never used                   no-unused-vars
  14:43  warning  'i' is defined but never used                     no-unused-vars
  14:46  warning  'savedstr' is assigned a value but never used     no-unused-vars
  44:9   warning  'cycle' is assigned a value but never used        no-unused-vars
  45:9   warning  'prevComplete' is defined but never used          no-unused-vars
  65:21  warning  Expected '===' and instead saw '=='               eqeqeq
  74:21  warning  Expected '===' and instead saw '=='               eqeqeq
  79:21  warning  Expected '===' and instead saw '=='               eqeqeq
  79:49  warning  Expected '===' and instead saw '=='               eqeqeq
  79:73  warning  Expected '===' and instead saw '=='               eqeqeq
  95:20  warning  Expected '===' and instead saw '=='               eqeqeq

/home/circleci/react-native/local-cli/link/__tests__/ios/writePlist.spec.js
  46:11  warning  'result' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/link/ios/copyAssets.js
  4:7  warning  'log' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/link/ios/getGroup.js
  3:56  warning  'group' is already declared in the upper scope  no-shadow

/home/circleci/react-native/local-cli/link/ios/registerNativeModule.js
   4:7  warning  'log' is assigned a value but never used       no-unused-vars
  15:7  warning  'getGroup' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/link/link.js
  182:6  warning  'assets' is already declared in the upper scope  no-shadow

/home/circleci/react-native/local-cli/link/unlink.js
  16:7  warning  'find' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/link/windows/unregisterNativeModule.js
  1:7  warning  'fs' is assigned a value but never used           no-unused-vars
  2:7  warning  'toCamelCase' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/templates/HelloNavigation/App.js
  9:8   warning  'React' is defined but never used      no-unused-vars
  9:17  warning  'Component' is defined but never used  no-unused-vars

/home/circleci/react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js
  12:3  warning  'UIManager' is defined but never used  no-unused-vars

/home/circleci/react-native/local-cli/templates/HelloNavigation/components/ListItem.js
  3:17  warning  'Component' is defined but never used  no-unused-vars

/home/circleci/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
  44:5  warning  Do not use setState in componentDidMount  react/no-did-mount-set-state

/home/circleci/react-native/local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
  43:7  warning  Do not use setState in componentDidMount  react/no-did-mount-set-state
  48:5  warning  Do not use setState in componentDidMount  react/no-did-mount-set-state

/home/circleci/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
  10:8  warning  'ListItem' is defined but never used  no-unused-vars

/home/circleci/react-native/local-cli/templates/HelloWorld/__tests__/App.js
  9:9  warning  'tree' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/local-cli/upgrade/upgrade.js
  15:7  warning  'printRunInstructions' is assigned a value but never used  no-unused-vars
  17:7  warning  'yarn' is assigned a value but never used                  no-unused-vars

/home/circleci/react-native/local-cli/util/copyAndReplace.js
  68:39  warning  Arrow function should not return assignment  no-return-assign

/home/circleci/react-native/react-native-cli/index.js
   43:5   warning  'exec' is assigned a value but never used         no-unused-vars
  199:21  warning  'options' is already declared in the upper scope  no-shadow
  209:40  warning  'options' is already declared in the upper scope  no-shadow
  220:24  warning  Expected error to be handled                      handle-callback-err
  230:30  warning  'options' is already declared in the upper scope  no-shadow
  271:33  warning  'options' is already declared in the upper scope  no-shadow

/home/circleci/react-native/react-native-git-upgrade/cliEntry.js
  65:24  warning  'path' is already declared in the upper scope  no-shadow

/home/circleci/react-native/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js
  55:36  warning  Using this.refs is deprecated                          react/no-string-refs
  56:36  warning  Using this.refs is deprecated                          react/no-string-refs
  57:36  warning  Using this.refs is deprecated                          react/no-string-refs
  58:36  warning  Using this.refs is deprecated                          react/no-string-refs
  63:13  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  64:15  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  65:17  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  67:15  warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js
  32:5  warning  Unexpected alias 'appInstance' for 'this'  consistent-this

/home/circleci/react-native/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js
   77:5    warning  Using this.refs is deprecated                          react/no-string-refs
   81:5    warning  Unexpected alias 'scrollViewApp' for 'this'            consistent-this
   88:126  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  102:5    warning  Using this.refs is deprecated                          react/no-string-refs
  106:5    warning  Unexpected alias 'scrollViewApp' for 'this'            consistent-this
  113:62   warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js
   16:5  warning  'ReactNativeViewAttributes' is assigned a value but never used  no-unused-vars
  271:5  warning  Unexpected alias 'appInstance' for 'this'                       consistent-this

/home/circleci/react-native/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js
  53:5  warning  Unexpected alias 'app' for 'this'  consistent-this

/home/circleci/react-native/ReactAndroid/src/androidTest/js/TestIdTestModule.js
  17:5  warning  'Switch' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/ReactAndroid/src/androidTest/js/TextInputTestModule.js
   67:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
   83:5   warning  Unexpected alias 'app' for 'this'                      consistent-this
  115:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  121:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  126:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  132:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  138:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/RNTester/js/AccessibilityIOSExample.js
  27:37  warning  Unexpected alert  no-alert
  33:33  warning  Unexpected alert  no-alert

/home/circleci/react-native/RNTester/js/ActionSheetIOSExample.js
  122:16  warning  Unexpected alert  no-alert
  163:18  warning  Unexpected alert  no-alert
  173:25  warning  Unexpected alert  no-alert

/home/circleci/react-native/RNTester/js/ARTExample.js
  26:3  warning  'Transform' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/RNTester/js/GeolocationExample.js
  50:18  warning  Unexpected alert  no-alert

/home/circleci/react-native/RNTester/js/ImageExample.js
  105:7  warning  Return statement should not contain assignment  no-return-assign

/home/circleci/react-native/RNTester/js/LayoutEventsExample.js
   95:15  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
   97:13  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  105:17  warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/RNTester/js/MultiColumnExample.js
  94:28  warning  Unexpected alert  no-alert

/home/circleci/react-native/RNTester/js/NativeAnimationsExample.js
  66:19  warning  Script URL is a form of eval  no-script-url

/home/circleci/react-native/RNTester/js/ScrollViewExample.js
  17:3  warning  'Platform' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/RNTester/js/SwitchExample.js
  17:3  warning  'Platform' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/RNTester/js/TextInputExample.android.js
  160:5   warning  Using this.refs is deprecated                          react/no-string-refs
  167:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  175:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  184:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  193:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  201:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  333:17  warning  'multiline' is assigned a value but never used         no-unused-vars

/home/circleci/react-native/RNTester/js/TextInputExample.ios.js
  200:5   warning  Using this.refs is deprecated                          react/no-string-refs
  207:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  215:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  224:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  233:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  242:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  716:39  warning  Unexpected alert                                       no-alert

/home/circleci/react-native/RNTester/js/TimerExample.js
  276:28  warning  Using string literals in ref attributes is deprecated  react/no-string-refs
  277:46  warning  Using this.refs is deprecated                          react/no-string-refs

/home/circleci/react-native/RNTester/js/TransparentHitTestExample.js
  27:42  warning  Unexpected alert  no-alert

/home/circleci/react-native/RNTester/js/TVEventHandlerExample.js
  19:3  warning  'StyleSheet' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/RNTester/js/WebViewExample.js
  112:5  warning  Using this.refs is deprecated  react/no-string-refs
  116:5  warning  Using this.refs is deprecated  react/no-string-refs
  120:5  warning  Using this.refs is deprecated  react/no-string-refs
  153:5  warning  Using this.refs is deprecated  react/no-string-refs

/home/circleci/react-native/RNTester/js/XHRExampleCookies.js
   73:5   warning  Using this.refs is deprecated                          react/no-string-refs
  127:11  warning  Using string literals in ref attributes is deprecated  react/no-string-refs

/home/circleci/react-native/RNTester/js/XHRExampleFormData.js
  17:3  warning  'Alert' is assigned a value but never used    no-unused-vars
  21:3  warning  'Linking' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/scripts/android-e2e-test.js
   53:44  warning  'path' is already declared in the upper scope        no-shadow
   60:41  warning  'path' is already declared in the upper scope        no-shadow
   86:10  warning  Expected error to be handled                         handle-callback-err
  126:11  warning  'androidAppCode' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/website/core/BlogPost.js
  18:5  warning  'ExcerptLink' is assigned a value but never used  no-unused-vars

/home/circleci/react-native/website/jsdocs/findExportDefinition.js
  133:16  warning  Expected '===' and instead saw '=='             eqeqeq
  161:11  warning  Return statement should not contain assignment  no-return-assign

/home/circleci/react-native/website/jsdocs/generic-function-visitor.js
   51:12  warning  Expected a conditional expression and instead saw an assignment  no-cond-assign
  305:32  warning  Expected '===' and instead saw '=='                              eqeqeq
  324:7   warning  'nameToTransforms' is already declared in the upper scope        no-shadow
  350:7   warning  'nameToTransforms' is already declared in the upper scope        no-shadow

/home/circleci/react-native/website/jsdocs/jsdocs.js
   14:5   warning  'fs' is assigned a value but never used    no-unused-vars
   22:5   warning  'util' is assigned a value but never used  no-unused-vars
  204:19  warning  Expected '!==' and instead saw '!='        eqeqeq
  204:39  warning  Expected '!==' and instead saw '!='        eqeqeq

/home/circleci/react-native/website/jsdocs/meta.js
  14:5  warning  'util' is assigned a value but never used    no-unused-vars
  16:5  warning  'Syntax' is assigned a value but never used  no-unused-vars
  17:5  warning  'utils' is assigned a value but never used   no-unused-vars

/home/circleci/react-native/website/jsdocs/traverseFlat.js
  86:35  warning  'scopeChain' is already declared in the upper scope  no-shadow

/home/circleci/react-native/website/jsdocs/type.js
  15:5  warning  'Syntax' is assigned a value but never used  no-unused-vars
  16:5  warning  'utils' is assigned a value but never used   no-unused-vars

/home/circleci/react-native/website/jsdocs/TypeExpressionParser.js
  152:9   warning  'nullable' is already declared in the upper scope                no-shadow
  152:37  warning  Expected '===' and instead saw '=='                              eqeqeq
  163:24  warning  Expected '===' and instead saw '=='                              eqeqeq
  175:5   warning  Unexpected use of '|'                                            no-bitwise
  175:5   warning  Unexpected use of '|'                                            no-bitwise
  175:5   warning  Unexpected use of '|'                                            no-bitwise
  186:44  warning  Expected '===' and instead saw '=='                              eqeqeq
  189:43  warning  Expected '!==' and instead saw '!='                              eqeqeq
  200:24  warning  Expected '===' and instead saw '=='                              eqeqeq
  201:25  warning  Expected '===' and instead saw '=='                              eqeqeq
  202:26  warning  Expected '===' and instead saw '=='                              eqeqeq
  204:37  warning  Expected '!==' and instead saw '!='                              eqeqeq
  210:26  warning  Expected '===' and instead saw '=='                              eqeqeq
  213:30  warning  Expected '===' and instead saw '=='                              eqeqeq
  228:24  warning  Expected '===' and instead saw '=='                              eqeqeq
  231:26  warning  Expected '===' and instead saw '=='                              eqeqeq
  239:5   warning  Unexpected use of '|'                                            no-bitwise
  239:5   warning  Unexpected use of '|'                                            no-bitwise
  239:5   warning  Unexpected use of '|'                                            no-bitwise
  239:5   warning  Unexpected use of '|'                                            no-bitwise
  243:6   warning  Unexpected use of '&'                                            no-bitwise
  244:6   warning  Unexpected use of '&'                                            no-bitwise
  245:6   warning  Unexpected use of '&'                                            no-bitwise
  246:6   warning  Unexpected use of '&'                                            no-bitwise
  247:6   warning  Unexpected use of '&'                                            no-bitwise
  257:9   warning  Expected a conditional expression and instead saw an assignment  no-cond-assign
  262:28  warning  Expected '===' and instead saw '=='                              eqeqeq
  272:40  warning  Expected '!==' and instead saw '!='                              eqeqeq
  293:24  warning  Expected '!==' and instead saw '!='                              eqeqeq
  479:26  warning  'ast' is already declared in the upper scope                     no-shadow

/home/circleci/react-native/website/layout/BlogPostLayout.js
  16:5  warning  'Hero' is assigned a value but never used            no-unused-vars
  17:5  warning  'MetadataBlog' is assigned a value but never used    no-unused-vars
  19:5  warning  'BlogPostHeader' is assigned a value but never used  no-unused-vars
  20:5  warning  'Marked' is assigned a value but never used          no-unused-vars

/home/circleci/react-native/website/server/extractDocs.js
  214:39  warning  'recast' is already declared in the upper scope  no-shadow

/home/circleci/react-native/website/server/generate.js
  83:37  warning  Expected '!==' and instead saw '!='  eqeqeq

✖ 221 problems (0 errors, 221 warnings)

npm info lifecycle [email protected]~postlint: [email protected]
npm info ok 
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info lifecycle [email protected]~preflow: [email protected]
npm info lifecycle [email protected]~flow: [email protected]

> [email protected] flow /home/circleci/react-native
> flow "check"

Error: node_modules/metro-bundler/src/Bundler/index.js.flow:265
                v-------------------------------------
265:     return this._resolverPromise.then(resolver =>
266:       resolver
267:         .getDependencyGraph()
...:
270:     );
         ^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/Bundler/index.js.flow:509
                v------------
509:     return Promise.all([
510:       this._resolverPromise,
511:       resolutionResponse,
...:
576:     });
         -^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/Bundler/index.js.flow:686
                v---------------------
686:     return this.getDependencies({
687:       entryFile,
688:       rootEntryFile: entryFile,
...:
715:     });
         -^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/Bundler/util.js.flow:165
165: class ArrayMap extends Map {
                            ^^^ identifier `Map`. Too few type arguments. Expected at least 2
543: declare class Map<K, V> {
                       ^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_35977cd/core.js:543

Error: node_modules/metro-bundler/src/Config.js.flow:139
                      v
139: const DEFAULT = ({
140:   extraNodeModules: Object.create(null),
141:   getAssetExts: () => [],
...:
164: }: ConfigT);
     ^ object literal. This type is incompatible with
164: }: ConfigT);
        ^^^^^^^ object type
  Property `extraNodeModules` is incompatible:
    140:   extraNodeModules: Object.create(null),
                             ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
     30:   extraNodeModules: {[id: string]: string},
                             ^^^^^^^^^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/DeltaBundler/DeltaTransformer.js.flow:313
313:     return output;
                ^^^^^^ Object.create. This type is incompatible with the expected return type of
304:   ): {[key: string]: $ReadOnlyArray<string>} {
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/JSTransformer/index.js.flow:144
144:       workerFarm.end(this._workers);
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `end`
 46:   process.nextTick(callback.bind(null, 'Worker farm not found!'));
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call of method `bind`. Method cannot be called on possibly undefined value. See: node_modules/metro-bundler/src/worker-farm/lib/index.js.flow:46
 46:   process.nextTick(callback.bind(null, 'Worker farm not found!'));
                        ^^^^^^^^ undefined (too few arguments, expected default/rest parameters). See: node_modules/metro-bundler/src/worker-farm/lib/index.js.flow:46

Error: node_modules/metro-bundler/src/JSTransformer/index.js.flow:158
158:       return Promise.reject(new Error('No transform module'));
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` of call of method `reject`. Missing annotation

Error: node_modules/metro-bundler/src/JSTransformer/index.js.flow:164
                v---------------
164:     return this._transform(
165:       this._transformModulePath,
166:       fileName,
...:
197:       });
           -^ type parameter `U` of call of method `catch`. Missing annotation

Error: node_modules/metro-bundler/src/Resolver/polyfills/require.js.flow:56
 56: const modules: ModuleMap = Object.create(null);
                                ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
 56: const modules: ModuleMap = Object.create(null);
                    ^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/Resolver/polyfills/require.js.flow:58
 58:   var verboseNamesToModuleIds: {[key: string]: number} = Object.create(null);
                                                              ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
 58:   var verboseNamesToModuleIds: {[key: string]: number} = Object.create(null);
                                    ^^^^^^^^^^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/Server/index.js.flow:236
236:     this._bundles = Object.create(null);
                         ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
236:     this._bundles = Object.create(null);
         ^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/Server/index.js.flow:455
455:     this._bundles = Object.create(null);
                         ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
455:     this._bundles = Object.create(null);
         ^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/node-haste/DependencyGraph/ResolutionRequest.js.flow:251
                v------------
251:     return Promise.all([
252:       // kicks off recursive dependency discovery, but doesn't block until it's
253:       // done
...:
284:       });
           -^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/node-haste/DependencyGraph/ResolutionRequest.js.flow:366
366:     this._immediateResolutionCache = Object.create(null);
                                          ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
366:     this._immediateResolutionCache = Object.create(null);
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/node-haste/DependencyGraph/ResolutionResponse.js.flow:37
 37:     this._mappings = Object.create(null);
                          ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
 37:     this._mappings = Object.create(null);
         ^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/node-haste/Module.js.flow:151
151:     return this.read(transformOptions).then(({code}) => code);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/node-haste/Module.js.flow:158
158:     return this.read(transformOptions).then(({map}) => map);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/node-haste/Module.js.flow:193
193:     return this.read(transformOptions).then(({dependencies}) => dependencies);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `U` of call of method `then`. Missing annotation

Error: node_modules/metro-bundler/src/node-haste/ModuleCache.js.flow:75
 75:     this._moduleCache = Object.create(null);
                             ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
 75:     this._moduleCache = Object.create(null);
         ^^^^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/node-haste/ModuleCache.js.flow:77
 77:     this._packageCache = Object.create(null);
                              ^^^^^^^^^^^^^^^^^^^ Object.create. This type is incompatible with
 77:     this._packageCache = Object.create(null);
         ^^^^^^^^^^^^^^^^^^ object type

Error: node_modules/metro-bundler/src/node-haste/Polyfill.js.flow:50
 50:     return Promise.resolve(this._dependencies);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `T` of call of method `resolve`. Missing annotation

Error: node_modules/metro-bundler/src/shared/output/bundle.js.flow:54
 54: ): Promise<> {
        ^^^^^^^^^ type application of identifier `Promise`. Too few type arguments. Expected at least 1
 14: declare class Promise<+R> {
                            ^ See type parameters of definition here. See lib: flow/Promise.js:14

Error: node_modules/metro-bundler/src/shared/output/unbundle/as-indexed-file.js.flow:41
 41: ): Promise<> {
        ^^^^^^^^^ type application of identifier `Promise`. Too few type arguments. Expected at least 1
 14: declare class Promise<+R> {
                            ^ See type parameters of definition here. See lib: flow/Promise.js:14

Error: node_modules/metro-bundler/src/shared/output/unbundle/index.js.flow:44
 44:     asIndexedFile(bundle, options, log);
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of identifier `Promise`. Too few type arguments. Expected at least 1
 14: declare class Promise<+R> {
                            ^ See type parameters of definition here. See lib: flow/Promise.js:14

Error: node_modules/metro-bundler/src/shared/output/unbundle/write-sourcemap.js.flow:22
 22: ): Promise<> {
        ^^^^^^^^^ type application of identifier `Promise`. Too few type arguments. Expected at least 1
 14: declare class Promise<+R> {
                            ^ See type parameters of definition here. See lib: flow/Promise.js:14


Found 26 errors
npm info lifecycle [email protected]~flow: Failed to exec flow script
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] flow: `flow "check"`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] flow script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/circleci/.npm/_logs/2017-10-11T06_37_37_991Z-debug.log
Exited with code 2

Reproducible Demo

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions