无法找到相对于目录的预设“流”

时间:2017-07-12 22:47:42

标签: react-native flowtype

奇怪的是,我似乎是第一个在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"

有没有人在流量之前遇到过这个问题?

0 个答案:

没有答案