Could not resolve libs in .flowconfig?
See original GitHub issueThis is a:
- Question
Which concerns:
- babel-plugin-flow-runtime
What is the current behaviour?
flow-runtime: Cannot resolve type: Card
What is the expected behaviour?
resolve declare types correctly
Which package versions are you using?
0.4.0
My .flowconfig
[ignore]
.*/node_modules/.*
.*/test/.*
.*/build/.*
.*/dist/.*
.*/coverage/.*
[include]
.*/src/.*
[libs]
src/flow
[options]
unsafe.enable_getters_and_setters=true
My src/flow/card.js
declare type Card = {
cardTypeId: string,
cardTypeName: void | string,
cardId: string,
cardTimes: number,
cardLimit: string,
cardDiscount: number,
isValueCard: boolean,
cardExpired: string,
cardStyle: number
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Could not resolve libs in .flowconfig? · Issue #53 · gajus/flow-runtime ...
My point is the libs prop in .flowconfig , and I can't use Card type automatically. For now, I must do this: //...
Read more >Unable to resolve module using flowconfig - Stack Overflow
... use flowconfig on a React Native app, but I can't find any file. Here is an example: .flowconfig: [options] module.system=haste [libs] ....
Read more >.flowconfig | Flow
Every Flow project contains a .flowconfig file. You can configure Flow by modifying .flowconfig . New projects or projects that are starting to...
Read more >Issuehunt
Could not resolve libs in .flowconfig? #53. JounQin posted onGitHub. This is a: Question. Which concerns: babel-plugin-flow-runtime ...
Read more >@xt-pagesource/flow-types-share - npm
The solution of this problem could be to ignore node_modules except for the few libraries which are exporting flow typings. But since oCamel...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will go through all the open issues after the upgrade is released.
flow-runtime
is great, butflow
itself sucks.Good luck.