Skip to content

Flow 0.20.1 and Facebook flux / fbjs libraries #1284

@artyomtrityak

Description

@artyomtrityak

flow check throws errors if you are using Facebook flux and fbjs libraries.

node_modules/fbjs/flow/include/PromiseMap.js:19
 19: import type * as Promise from 'Promise';
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ import type * as Promise. This is invalid syntax. Maybe you meant: `import type Promise from "Promise"`?

node_modules/flux/flow/include/FluxMixinLegacy.js:15
 15: import type * as FluxStore from 'FluxStore';
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ import type * as FluxStore. This is invalid syntax. Maybe you meant: `import type FluxStore from "FluxStore"`?

Is it Flow or Flux / fbjs issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions