Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Flow definitions causing error: "Named import from module react." #785

Closed
pitr12 opened this issue Jun 15, 2017 · 4 comments
Closed

Flow definitions causing error: "Named import from module react." #785

pitr12 opened this issue Jun 15, 2017 · 4 comments

Comments

@pitr12
Copy link
Contributor

pitr12 commented Jun 15, 2017

Using typedefs from react-apollo causes flow error to appear: Named import from module 'react'. This module has no named export called 'Component'.

Issue is exactly same as one referred here: facebook/flow#3685

The cause of problem is probably that in index.js.flow
import type { Component } from 'react';is outside of a declare module block.

When it is moved into declare module block, errors disappear.

Version

@helfer
Copy link
Contributor

helfer commented Jun 16, 2017

Hey @pitr12, thanks for filing the issue. Yeah, it seems like we could easily fix this by importing it in the proper way. Would you mind making a PR? 🙂 🙏

@trevordmiller
Copy link

Has this been released? Also running into it. Thank you.

@steida
Copy link

steida commented Jun 28, 2017

Here is quick fix este/este@00b86b7

@hyusetiawan
Copy link

any news on this?

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

No branches or pull requests

5 participants