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

'Cannot resolve module' on https://flow.org/try #8313

Open
penx opened this issue Mar 5, 2020 · 0 comments
Open

'Cannot resolve module' on https://flow.org/try #8313

penx opened this issue Mar 5, 2020 · 0 comments

Comments

@penx
Copy link
Contributor

penx commented Mar 5, 2020

Flow version: v0.119.1

Expected behavior

I want to explore possible bugs with declare module, so need to be able to use it on https://flow.org/try to isolate and share the issue.

It's my understanding that the following should work on https://flow.org/try without any issues:

declare module 'my-lib' {
  declare export type Test = {
    count: number
  }
}


declare module 'my-lib/macro' {
   declare export * from 'my-lib';
 }

Actual behavior

9:    declare export * from 'my-lib';
                            ^ Cannot resolve module `my-lib`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants