facebook / facebook/flow

Flow doesn't see external modules, starting with 0.46

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

Description

Flow stopped seeing external modules with 0.46

Replicate this issue:

package.json:

````json
{
"name": "flow_min_case",
"version": "1.0.0",
"main": "src/index.js",
"license": "MIT",
"dependencies": {
"emoji-poop": "^1.3.0"
}
}
````

src/index.js:

````js
/* @flow */
import emoji from 'emoji-poop';
````

src/.flowconfig:

````
[ignore]

[include]
../node_modules/emoji-poop

[libs]

[options]
````

1. `npm install` (or `yarn`)
2. `cd src && flow check`

````
index.js:2
2: import emoji from 'emoji-poop';
^^^^^^^^^^^^ emoji-poop. Required module not found

Found 1 error
````

checking works with 0.45 and lower. With 0.46 and above, it shows the error. ~~~I haven't yet tried to build from master, so I am not sure if it's present there.~~~ It has the same error in master, too.

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.