Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-apollo causes flow-typed install to error #2226

Closed
jackmellis opened this issue May 16, 2018 · 7 comments
Closed

react-apollo causes flow-typed install to error #2226

jackmellis opened this issue May 16, 2018 · 7 comments

Comments

@jackmellis
Copy link
Contributor

When I run flow-typed install it fails because the react-apollo definition contains a CONTRIBUTING.md file:

https://github.com/flowtype/flow-typed/blob/master/definitions/npm/react-apollo_v2.x.x/CONTRIBUTING.md

This is a pretty big blocker for me 😞

@eryon
Copy link

eryon commented May 16, 2018

@gantoine @TLadd @budde377
👍 as of #2172

Stack trace:

UNCAUGHT ERROR: Error: react-apollo_v2.x.x/CONTRIBUTING.md: Unexpected file name. This directory can only contain test files or a libdef file named `react-navigation_v2.x.x.js`.
    at validationError (/<project>/node_modules/flow-typed/dist/lib/validationErrors.js:14:11)
    at /<project>/node_modules/flow-typed/dist/lib/npm/npmLibDefs.js:113:53

@eryon
Copy link

eryon commented May 16, 2018

This is an issue with react-navigation_v1.x.x and react-navigation_v2.x.x as well (#1925 and #2210)

@jackmellis there is a work-around to just remove the offending CONTRIBUTING.md files from your local clone of the repository. Check ~/.flow-typed/repo/definitions/npm/<libdef>.

@TLadd
Copy link
Contributor

TLadd commented May 16, 2018

Are y'all on the latest version of flow-typed? It appears some work was put in to allow this:
#1926
#1962

@eryon
Copy link

eryon commented May 16, 2018

@TLadd correct, thanks. I was on flow-typed@^2.3.0 and updating the dependency has resolved the issue.

@gantoine
Copy link
Member

Thanks for taking this one @TLadd ! I'll be deprecating lower versions on npm once we're done breaking stuff.

@jackmellis
Copy link
Contributor Author

jackmellis commented May 16, 2018

I use flow-typed via npx i.e. npx flow-typed install which is still throwing even after clearing my npm cache. Any ideas?

^ my bad, I had an old global install that npx was picking up instead of the latest version!

@AndrewSouthpaw
Copy link
Contributor

I think our tally of issues regarding this is in the double digits now. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants