无法使用flowconfig解析模块

时间:2016-06-08 01:03:23

标签: ios react-native flowtype

我正在尝试在React Native应用程序上使用flowconfig,但我找不到任何文件。

这是一个例子: .flowconfig:

[options]
module.system=haste
[libs]
./node_modules/flow-interfaces/interfaces/
./interfaces/
./node_modules/react-native/Libraries/react-native/react-native-interface.js
./node_modules/react-native/flow/

module.name_mapper='^reducers\/\(.*\)$' -> '<PROJECT_ROOT>/app/reducers/\1'
module.name_mapper='^reducers$' -> '<PROJECT_ROOT>/app/reducers'

运行时:

Unable to resolve module reducers from ...

相同的配置适用于网络项目,有没有人有任何想法? 谢谢! :d

0 个答案:

没有答案