我做错什么了?
我的.flowconfig
[ignore]
.*/node_modules/.*
.*/dist/.*
[include]
[libs]
[lints]
[options]
platform=browser
module.file_ext=.jsx
[strict]当我试图安装defs类型时。
npx flow-typed install我收到错误
❯ npx flow-typed install
• Found 66 dependencies in package.json to install libdefs for.
Searching...
UNCAUGHT ERROR: Error: react-navigation_v1.x.x/CONTRIBUTING.md:
Unexpected file name. This directory can only contain test files or a
libdef file named `react-navigation_v1.x.x.js`.
at validationError ( ...发布于 2018-04-08 07:17:56
我认为flow-typed内部结构发生了变化,允许.md文件成为定义的一部分,但这要求您升级到flow-typed v2.4+。尝试升级您的flow-typed版本,看看它是否有帮助。
https://stackoverflow.com/questions/49710072
复制相似问题