flow icon indicating copy to clipboard operation
flow copied to clipboard

CLI option "get-importers" isn't available

Open scottambroseio opened this issue 9 years ago • 6 comments

Hey all,

According to https://flow.org/en/docs/cli/, the flow-cli has a get-importers cli flag which "Gets a list of all importers for one or more given modules". This option doesn't seem to be available on the cli.

Expected: Either for the option to be available and usable as described, or for the documentation to be updated to reflect the command not being available / removed in version X / not available on Windows etc.

Here's a section of my output from running flow --help, where get-importers isn't listed.

missing

Flow, a static type checker for JavaScript, version 0.45.0 OS Windows 10

scottambroseio avatar May 11 '17 13:05 scottambroseio

The 0.41.0 release notes say:

flow get-importers has been removed. It was rarely used and added an incredible amount of complexity to the codebase

bradencanderson avatar May 18 '17 17:05 bradencanderson

Ah, that makes sense, thanks for the clarification.

scottambroseio avatar May 19 '17 09:05 scottambroseio

Documentation should be removed then.

Overload119 avatar Jun 22 '17 20:06 Overload119

Is there an alternative way to get those importers ? All I can think of is using webpack stats.

bannier avatar Jul 11 '17 19:07 bannier

You could remove a file and look at the errors that show up :)

On Tue, Jul 11, 2017 at 12:44 PM, Sylvain Bannier [email protected] wrote:

Is there an alternative way to get those importers ? All I can think of is using webpack stats.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebook/flow/issues/3920#issuecomment-314550947, or mute the thread https://github.com/notifications/unsubscribe-auth/AE029bVT001F0baxlUBScRP6gj0ROXM5ks5sM9CmgaJpZM4NX_41 .

bradencanderson avatar Jul 12 '17 03:07 bradencanderson

The doc no longer says such command exist.

SamChou19815 avatar Feb 15 '23 21:02 SamChou19815