flow icon indicating copy to clipboard operation
flow copied to clipboard

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

Open penx opened this issue 5 years ago • 0 comments

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`.
  • Link to Try-Flow or Github repo: https://flow.org/try/#0CYUwxgNghgTiAEBbA9sArhBByRBPAtBAJYBGW8A3gFDzyiSwIgAeADsjAC7ye6sIAVEAGduAXko1a8MMjQA7TgC548tIhIgYUgL5U9VKvWhwkqDNjyFSAekRQwMZOWrTjjeC3Zd4AKngAZk6I8DgExGQA3DR6QA

penx avatar Mar 05 '20 18:03 penx