我已将Flow-IDE安装到我的vscode中以获得更好的体验。
而且,显然,是全球范围内的流箱。
然后,per flow instructions我正在尝试为我的create-react-app
设置道具类型
但是我有两个问题:
1个儿童
Cannot get `React.Node` because property `Node` is missing in object type
还有Flow-IDE doesn't see paths: Cannot resolve module app/components/...etc...
我该如何解决?
答案 0 :(得分:1)
.flowconfig进行救援:
[ignore]
.*/node_modules/.*
.*/build/.*
[include]
[libs]
flow-typed
[lints]
[options]
all=true
module.system.node.resolve_dirname=src
module.system.node.resolve_dirname=node_modules
esproposal.decorators=ignore
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
[strict]