奇怪的是,我似乎是第一个在interwebz上遇到这种“流量”预设错误的人..
我的.babelrc
配置为
{
presets: ["react-native", "flow"]
}
我的package.json包含以下dev依赖项:
{
"babel-cli": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"flow-bin": "^0.38.0"
}
然而,我收到以下错误:
TransformError: /Users/Progoogler/App/ios/src/index.js: Couldn't find
preset "flow" relative to directory "/Users/Progoogler/App"
有没有人在流量之前遇到过这个问题?