Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

It only works before save #289

Description

@rico345100

As title said, it works but only before save.

For example, if I access something non exists property in specific object type, flow gives me error like this:

[flow] Cannot get user.wallet.a because property a is missing in UserEntityWallet [1]. (References: [1])

However when I save the file, it just changed to this:

[flow coverage] uncovered code

It's really annoying because I save the file a lot. Here's my flow config settings:

[ignore]
.*/dist/.*
.*/node_modules/jsonlint/.*
.*/node_modules/rc-util/.*
.*/node_modules/react-apollo/node_modules/.*

[include]

[libs]
./src/global.js
flow-typed

[options]
esproposal.decorators=ignore
module.name_mapper='^.*\.css$' -> 'css-module-flow'
module.name_mapper='^.*\.scss$' -> 'css-module-flow'
module.name_mapper='^.*\.less$' -> 'css-module-flow'
module.name_mapper='^components\(.*\)$' -> '<PROJECT_ROOT>/src/components/\1'
module.name_mapper='^containers\(.*\)$' -> '<PROJECT_ROOT>/src/containers/\1'
module.name_mapper='^types\(.*\)$' -> '<PROJECT_ROOT>/src/types/\1'
module.name_mapper='^helpers\(.*\)$' -> '<PROJECT_ROOT>/src/helpers/\1'
module.system=haste
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src


[lints]

And here's the version I'm using:

  • Node@8.12.0
  • Flow@0.85.0
  • flow-for-vscode@0.8.5

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