-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow doesn't resolve libdef's path correctly #5238
Comments
That's because redux_v3.x.x.js does not export any types. It's simply a libdef which defines a module named |
@jcready but flow does not recognize it ( - Flow: Cannot resolve symbol 'Store' |
You need to change your import back to import type { Store } from 'redux'; |
here another error in this case: Here are some reporters #830 |
I've found solution of the problem: eslint/import plugin scans node_modules and founds .ts files instead of reading definitions from flow-typed. |
I've installed flow-typed, have imported libdefs.
Import type from module:
When I Ctrl+click on Store - WebStorm opens index.d.ts from /node_modules/redux/ folder while there present flow definition file /flow-typed/npm/redux_v3.x.x.js
If I import definition file directly
I got an error: Cannot resolve symbol 'Store' and clicking on Store does not open definition file at all.
.flowconfig
package.json
The text was updated successfully, but these errors were encountered: