facebook / facebook/flow

"Cannot resolve module" error could be more helpful

Open
#5,935 4 comments 50 reactions 0 assignees View on GitHub
documentation error messages
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

If this is a bug, please try reproducing using https://flow.org/try/.

As a first-time user of Flow, wasted a lot of time trying to figure out how to fix that error - when it turned out that all it means is that you need to install a type definition for the module. I thought it was having issues finding or importing the module itself.

Suggestion: "Cannot resolve module X. The module may not have typing definitions, which can be installed using flow-typed."

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.