Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: react-navigation_v1.x.x/CONTRIBUTING.md: Unexpected file name

What's I'm doing wrong?

My .flowconfig

[ignore]
.*/node_modules/.*
.*/dist/.*

[include]

[libs]

[lints]

[options]
platform=browser
module.file_ext=.jsx

[strict]

When I try to install type defs..

npx flow-typed install

I receive the error

❯ 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 ( ...
like image 415
ridermansb Avatar asked Apr 07 '18 17:04

ridermansb


1 Answers

I think there was a change in flow-typed internals which now allows for .md files to be part of the definitions, but this requires you to upgrade to flow-typed v2.4+. Try upgrading your flow-typed version and see if it helps.

like image 161
Saad Avatar answered Sep 20 '22 13:09

Saad