Skip to content

Instantly share code, notes, and snippets.

@joemckie
Created November 21, 2017 19:50
Show Gist options
  • Save joemckie/35d42c0e8040d55a82c3897f112d8738 to your computer and use it in GitHub Desktop.
Save joemckie/35d42c0e8040d55a82c3897f112d8738 to your computer and use it in GitHub Desktop.
Error: node_modules/metro-bundler/src/Bundler/index.js.flow:572
572: .then(postProcess)
^^^^^^^^^^^ null. This type is incompatible with the expected param type of
601: onFulfill?: (value: R) => Promise<U> | U,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:601
Error: node_modules/metro-bundler/src/ModuleGraph/types.flow.js.flow:16
16: import type {Console} from 'console';
^^^^^^^^^ console. Required module not found
Error: node_modules/metro-bundler/src/Server/symbolicate/symbolicate.js.flow:38
38: const child = new LockingPromise(new LazyPromise(() => startupChild(socket)));
^^^^^^^^^^^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of
29: constructor(factory: () => PromiseLike<T>) {
^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:29
This parameter is incompatible:
38: const child = new LockingPromise(new LazyPromise(() => startupChild(socket)));
^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with
29: constructor(factory: () => PromiseLike<T>) {
^^^^^^^^^^^^^^ object type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:29
Property `catch` is incompatible:
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ function type. This type is incompatible with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
This parameter is incompatible:
607: ): Promise<R | U>;
^^^^^^^^^^^^^^ type application of class `Promise`. Has some incompatible type argument with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:607
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^ type application of identifier `Promise`. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
Type argument `R` is incompatible:
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^ null. This type is incompatible with. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ some incompatible instantiation of `U`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
Error: node_modules/metro-bundler/src/Server/symbolicate/symbolicate.js.flow:38
38: const child = new LockingPromise(new LazyPromise(() => startupChild(socket)));
^^^^^^^^^^^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of
29: constructor(factory: () => PromiseLike<T>) {
^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:29
This parameter is incompatible:
38: const child = new LockingPromise(new LazyPromise(() => startupChild(socket)));
^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with
29: constructor(factory: () => PromiseLike<T>) {
^^^^^^^^^^^^^^ object type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:29
Property `catch` is incompatible:
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ function type. This type is incompatible with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
This parameter is incompatible:
607: ): Promise<R | U>;
^^^^^^^^^^^^^^ type application of class `Promise`. Has some incompatible type argument with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:607
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^ type application of identifier `Promise`. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
Type argument `R` is incompatible:
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^ undefined. This type is incompatible with. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ some incompatible instantiation of `U`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
Error: node_modules/metro-bundler/src/Server/symbolicate/symbolicate.js.flow:58
58: resolve(child);
^^^^^ child_process$ChildProcess. This type is incompatible with the expected param type of
596: resolve: (result: Promise<R> | R) => void,
^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `R` of constructor call. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:596
Member 1:
596: resolve: (result: Promise<R> | R) => void,
^^^^^^^^^^ type application of class `Promise`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:596
Error:
58: resolve(child);
^^^^^ child_process$ChildProcess. This type is incompatible with
596: resolve: (result: Promise<R> | R) => void,
^^^^^^^^^^ Promise. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:596
Member 2:
v---------------------------------
53: return new Promise((resolve, reject) => {
54: child
55: .once('error', reject)
...:
62: });
-^ type parameter `R` of constructor call
Error:
38: const child = new LockingPromise(new LazyPromise(() => startupChild(socket)));
^^^^^^^^^^^^^^^^^^^^^^^^^^ function. This type is incompatible with the expected param type of
29: constructor(factory: () => PromiseLike<T>) {
^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:29
This parameter is incompatible:
38: const child = new LockingPromise(new LazyPromise(() => startupChild(socket)));
^^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with
29: constructor(factory: () => PromiseLike<T>) {
^^^^^^^^^^^^^^ object type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:29
Property `catch` is incompatible:
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ function type. This type is incompatible with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
This parameter is incompatible:
607: ): Promise<R | U>;
^^^^^^^^^^^^^^ type application of class `Promise`. Has some incompatible type argument with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:607
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^ type application of identifier `Promise`. See: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:15
Type argument `R` is incompatible:
58: resolve(child);
^^^^^ child_process$ChildProcess. This type is incompatible with
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ some incompatible instantiation of `U`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
Error: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:72
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^ object type
Property `catch` is incompatible:
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ function type. This type is incompatible with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type
This parameter is incompatible:
607: ): Promise<R | U>;
^^^^^^^^^^^^^^ type application of class `Promise`. Has some incompatible type argument with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:607
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^ type application of identifier `Promise`
Type argument `R` is incompatible:
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^ null. This type is incompatible with
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ some incompatible instantiation of `U`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
Error: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:72
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^ object type
Property `catch` is incompatible:
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ function type. This type is incompatible with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type
This parameter is incompatible:
607: ): Promise<R | U>;
^^^^^^^^^^^^^^ type application of class `Promise`. Has some incompatible type argument with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:607
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^ type application of identifier `Promise`
Type argument `R` is incompatible:
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^ undefined. This type is incompatible with
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ some incompatible instantiation of `U`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
Error: node_modules/metro-bundler/src/Server/symbolicate/util.js.flow:72
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^ function. This type is incompatible with the expected param type of
601: onFulfill?: (value: R) => Promise<U> | U,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:601
This parameter is incompatible:
86: function empty() {}
^ undefined. This type is incompatible with
601: onFulfill?: (value: R) => Promise<U> | U,
^^^^^^^^^^^^^^ union: type application of class `Promise` | type parameter `U` of call of method `then`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:601
Member 1:
601: onFulfill?: (value: R) => Promise<U> | U,
^^^^^^^^^^ type application of class `Promise`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:601
Error:
86: function empty() {}
^ undefined. This type is incompatible with
601: onFulfill?: (value: R) => Promise<U> | U,
^^^^^^^^^^ Promise. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:601
Member 2:
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^^^^^^^^^^ type parameter `U` of call of method `then`
Error:
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^^^^^^^^^^ Promise. This type is incompatible with
72: this._gate = promise.then(empty); // avoid retaining the result of promise
^^^^^^^^^^ object type
Property `catch` is incompatible:
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ function type. This type is incompatible with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function type
This parameter is incompatible:
607: ): Promise<R | U>;
^^^^^^^^^^^^^^ type application of class `Promise`. Has some incompatible type argument with. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:607
15: catch<U>(onReject?: (error: any) => ?Promise<U> | U): Promise<U>,
^^^^^^^^^^ type application of identifier `Promise`
Type argument `R` is incompatible:
86: function empty() {}
^ undefined. This type is incompatible with
v--------
605: catch<U>(
606: onReject?: (error: any) => Promise<U> | U
607: ): Promise<R | U>;
----------------^ some incompatible instantiation of `U`. See lib: /private/tmp/flow/flowlib_126f38a6/core.js:605
Error: node_modules/react-native/Libraries/Interaction/InteractionManager.js:107
107: return promise.done(...args);
^^^^^^^^^^^^^^^^^^^^^ call of method `done`. Function cannot be called on
107: return promise.done(...args);
^^^^^^^^^^^^^^^^^^^^^ property `done` of unknown type
Error: node_modules/react-native/Libraries/Interaction/TaskQueue.js:165
165: .done();
^^^^ property `done`. Property not found in
v---------
152: task.gen()
153: .then(() => {
154: DEBUG && infoLog(
...:
164: })
-^ Promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment