There is a CONTRIBUTING.md file in the react-apollo type definitions. This won't allow me to install or search any type definitions. This is the first time I am installing flow-typed and I have nothing in my local cache.
The output of, for example, flow-typed search [email protected] is:
(node:8056) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
• rebasing flow-typed cache...done.
UNCAUGHT ERROR: Error: ../../../pmrcunha/.flow-typed/repo/definitions/npm/react-apollo_v2.x.x/CONTRIBUTING.md: Malformed test file name! Test files must be formatted as test_(.*).js: CONTRIBUTING.md
at validationError (/Users/pmrcunha/Documents/reps/oss/prepack/node_modules/flow-typed/dist/lib/validationErrors.js:14:11)
...
FWIW I am also hitting this same exact issue
yarn global remove flow-typed
yarn global add flow-typed
solved the problem for me
(duplicated issue https://github.com/flowtype/flow-typed/issues/2226)
Updating to the latest version of flow-typed is indeed the fix.
Most helpful comment
yarn global remove flow-typedyarn global add flow-typedsolved the problem for me
(duplicated issue https://github.com/flowtype/flow-typed/issues/2226)