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.

I am getting 3 type errors in lodash v4.x.x when using flow-bin 0.64.0

See original GitHub issue
Library type error:
flow-typed/npm/lodash_v4.x.x.js:745
745:     defer(func: Function, ...args?: Array<any>): TimeoutID;
                                                      ^^^^^^^^^ identifier `TimeoutID`. Could not resolve name

Library type error:
flow-typed/npm/lodash_v4.x.x.js:1365
1365:     flow: $ComposeReverse;
                ^^^^^^^^^^^^^^^ identifier `$ComposeReverse`. Could not resolve name

Library type error:
flow-typed/npm/lodash_v4.x.x.js:1367
1367:     flowRight: $Compose;
                     ^^^^^^^^ identifier `$Compose`. Could not resolve name


Found 3 errors

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
saadqcommented, Mar 19, 2018

To fix the TimeoutID issue for now, you can manually edit the definition file and put something like

type TimeoutID = number;

at the top.

0reactions
nickensoulcommented, Nov 20, 2019

Seems like going to the similar issue. After regular npm install command and regenerating libdefs types and stubs getting a bunch (627 for now, for example) of types errors in different files like

Cannot resolve name setTimeout.
Cannot resolve name React$Node.
Cannot resolve name Boolean.
Cannot resolve name Function.

etc. Note, it worked before was npm install called. So, flow is missing global types. Facing this issue not in the first time, and sometimes force cleaning nom cache and regenerating stubs works, but sometimes not. What’s may go wrong with the flow installation?

Read more comments on GitHub >

github_iconTop Results From Across the Web

lodash error while building /@types/lodash/common/object.d ...
I fixed this issue by npm install --save @types/lodash@4.14.74. npm install alone didn't install that dependency.
Read more >
rollup | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Fixing Lodash TypeScript Errors By Upgrading @types/lodash ...
Ben Nadel shares a set of TypeScript error messages that he was getting when attempting to create a proxy method around Lodash.
Read more >
material ui treeview default expand triggered without leaf node
I'm trying to reload the tree view with desired expanded nodes. In this example when treeView reloads it should be expanded to nodeId...
Read more >
https://phab.comm.dev/rCOMMeb556addc8900b61dbf256c...
Gradle automatically packages shared libraries with your APK. set(PACKAGE_NAME ... (0.0.4) - Flipper-RSocket (1.4.3): - Flipper-Folly (~> 2.6) - FlipperKit ...
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