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.

"No libdef files found" when trying to install

See original GitHub issue

I’m trying to use Flow on my angular app, so flow-typed install angular@4.4.6 but it fails with

• rebasing flow-typed cache...
ERROR: Unable to rebase the local cache repo. Error rebasing the `master` branch of the following repo:
C:\Users\username\.flow-typed\repo

undefined

NOTE: Unable to rebase local cache! If you don't currently have internet connectivity, no worries -- we'll update the local cache the next time you do.

UNCAUGHT ERROR: Error: npm/random-js_v1.x.x: No libdef files found!
    at validationError (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\dist\lib\validationErrors.js:14:11)
    at extractLibDefsFromNpmPkgDir$ (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\dist\lib\npm\npmLibDefs.js:142:51)
    at tryCatch (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:65:40)
    at Generator.invoke [as _invoke] (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:117:21)
    at tryCatch (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:65:40)
    at invoke (c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:155:20)
    at c:\Users\username\AppData\Roaming\npm\node_modules\flow-typed\node_modules\regenerator-runtime\runtime.js:165:13
    at <anonymous>```

What am I doing wrong? I'm new to Flow, so I can misunderstand something: if so, sorry)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
wang1212commented, Jun 27, 2018

I solved this problem in the following way:

  1. Delete all files in the .flow-typed folder;
  2. Re-run flow-typed install

Then, I waited a few minutes for the execution to be successful.

I guess the cause of this problem is the bad network condition.

2reactions
AndrewSouthpawcommented, Jun 26, 2018

The /Users/kynan/.flow-typed/repo part looks pretty strange to me, what’s going on in your .flow-typed directory? What happens if you wipe that folder? Obviously not an actual solution, but I’m curious to see what’s going on…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do flow-typed libdefs types not work consistently?
I have a React project using Flow for static type checking; I have libdefs for npm 3rd party libraries installed using flow-typed ....
Read more >
Flow | Checking third-party code
If a compatible libdef is found, download it into the <PROJECT_ROOT>/flow-typed/ directory. If no compatible libdef is found and the library does not...
Read more >
Solve libcef.dll Is Missing Error In Windows 10/8/7 [Tutorial]
This DLL file is digitally signed by Valve and is used by Steam and ... computer libcef.dll was not found libcef.dll fix libcef.dll...
Read more >
missing file message on Windows 10 install
Just tried to install a non-upgrade, full version of Windows 10 Pro from a factory USB on a new SSD in a single...
Read more >
Library Definitions | Flow
Most real JavaScript programs depend on third-party code and not just code ... A libdef is a special file that informs Flow about...
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