import-js / import-js/eslint-plugin-import

Error ESLint: <Flow-typed type definition> not found in module (import/named)

Open
#960 7 comments 4 reactions 0 assignees View on GitHub
flow
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I use to flow type checking & flow-typed defs in my project.
I have installed libDef for redux package also
```
import type { Store } from 'redux';
^^^ Error:() ESLint: Store not found in 'redux' (import/named)
```
Clicking to Store is pointed me to type definition file from flow-typed directory, but plugin state that such definition has not found in the module.
Though flow correctly identifies Store and displays type info in IDE

Contributor guide

Open the contributing guide

Research direction

Start with the reported `import type { Store } from 'redux'` example and trace how the import/named rule resolves Flow-typed definitions. Check how the redux definition is discovered, then verify that the example no longer reports Store as missing while regular named-import validation remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript, redux
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.