question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not resolve libs in .flowconfig?

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gajuscommented, Aug 12, 2019

I will go through all the open issues after the upgrade is released.

0reactions
JounQincommented, Aug 12, 2019

flow-runtime is great, but flow itself sucks.

Good luck.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found