flow
flow copied to clipboard
'Cannot resolve module' on https://flow.org/try
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