Last active
September 29, 2016 16:20
-
-
Save rodrigopr/60477b637c39fa9842ec0e602ecc22f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test.js:5 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ React element `WrappedExample` | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^ number. This type is incompatible with | |
6: type ExampleProps = { name: string }; | |
^^^^^^ string. See: container.js:6 | |
Trace: | |
* path 1: | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^ NumT [number] | |
6: type ExampleProps = { name: string }; | |
^^^^^^ ~> UseT(UnknownUse, StrT) [string] (from path 2). See: container.js:6 | |
* path 2: | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ObjT [props of React element `WrappedExample`] | |
11: const work = <WrappedExample name={""} />; | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> UseT(UnknownUse, ObjT) [props of React element `WrappedExample`] (from path 3). See: container.js:11 | |
* path 3: | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ObjT [props of React element `WrappedExample`] | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [type parameter `P` of function call] (from path 4). See: container.js:8 | |
* path 4: | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ObjT [props of React element `WrappedExample`] | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> ReposLowerT [props of React element `WrappedExample`] (from path 5) | |
* path 5: | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^ FunT [function type]. See: container.js:8 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> CallT [React element `WrappedExample`] (from path 6) | |
* path 6: | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^ FunT [function type]. See: container.js:8 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> ReactCreateElementT [React element `WrappedExample`] (from path 7) | |
* path 7: | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^ OpenT [polymorphic type: type `StatelessComponent`]. See: container.js:8 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> ReactCreateElementT [React element `WrappedExample`] (from path 8) | |
* path 8: | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^ AnnotT [polymorphic type: type `StatelessComponent`]. See: container.js:8 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> ReactCreateElementT [React element `WrappedExample`] (from path 9) | |
* path 9: | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^ OpenT [export var WrappedExample]. See: container.js:8 | |
2: import { Example, WrappedExample } from './container'; | |
^^^^^^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [Named import from module `./container`] (from path 10) | |
2: import { Example, WrappedExample } from './container'; | |
^^^^^^^^^^^^^^ OpenT [import { WrappedExample }] | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> ReactCreateElementT [React element `WrappedExample`] (from path 11) | |
* path 10: | |
8: export const WrappedExample = someHOC(Example); | |
^^^^^^^^^^^^^^ OpenT [export var WrappedExample]. See: container.js:8 | |
2: import { Example, WrappedExample } from './container'; | |
^^^^^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [./container] | |
2: import { Example, WrappedExample } from './container'; | |
^^^^^^^^^^^^^^ ~> ImportNamedT [Named import from module `./container`] | |
* path 11: | |
182: declare var createElement: React$CreateElement | |
^^^^^^^^^^^^^^^^^^^ CustomFunT [function type]. See lib: /private/tmp/flow/flowlib_f73f237/react.js:182 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> CallT [React element `WrappedExample`] (from path 12) | |
* path 12: | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ObjT [module `react`] | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [CommonJS exports of "react"] (from path 13) | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> MethodT [React element `WrappedExample`] | |
* path 13: | |
OpenT [.$module__react] | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [react] (from path 14) | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> UseT(UnknownUse, OpenT) [react] | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> CJSRequireT [CommonJS exports of "react"] | |
* path 14: | |
158: declare module react { | |
^ ModuleT [module `react`]. See lib: /private/tmp/flow/flowlib_f73f237/react.js:158 | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> UnifyT [react] (from path 15) | |
* path 15: | |
OpenT [.$module__react] | |
5: const dontWork = <WrappedExample name={123} />; // it start working if we uncomment the line in the other file | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~> UnifyT [react] (from [not shown]) | |
Found 1 error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment