我正在尝试在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