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.

error TS2688: Cannot find type definition file for 'keyv'. For version 4.2.0

See original GitHub issue

Type definition missing for 4.2.0 One of my projects has a dependency on keyv, when the typescript compiler runs it finds that 4.2.0 doesnt have the index.d.ts file. There was a publish made 16 hours ago post which builds for me have started failing. https://registry.npmjs.org/@types/keyv mentions the versions installed, and the package to the tar file is https://registry.npmjs.org/@types/keyv/-/keyv-4.2.0.tgz

Either i can force resolution to a lower version or maybe you could push 4.2.0 with the index.d.ts file or mention a migration strategy.

Thanks

Steps To reproduce

  1. Clone https://github.com/software-mansion/react-native-screens
  2. npm install should fail

The failed message should say something around the line of bob build failed. This is caused by @react-native-community-package/bob, where it runs the tsc build command as mentioned on the bottom line and it will fail.

https://github.com/callstack/react-native-builder-bob/blob/v0.17.1/src/targets/typescript.ts#L130

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
jaredwraycommented, Nov 3, 2022

@kanadgupta @mesner @mmcshinsky-bitgo - merging and will release the changes in the next 48 hours.

2reactions
alphmthcommented, Oct 21, 2022

@azmicirit It got removed in this issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/62793

Will this workaround mentioned in above issue works?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR TS2688: Cannot find type definition file for 'keyv'
ERROR TS2688 : Cannot find type definition file for 'keyv'. The file is in the program because: Entry point for implicit type library...
Read more >
Dependecy Issue - Cannot find type definition file for 'keyv ...
I have searched existing issues, it hasn't been reported yet Use case description Type definition missing for 4.2.0 This error occures after ...
Read more >
Error TS2688: Cannot find type definition file for 'node'
Error TS2688 : Cannot find type definition file for 'node' · Execute VTEX setup command · Delete the node_modules folder · Go to...
Read more >
msbuild fail Error TS2688 Build:Cannot find type definition file ...
Web project with Angular 2 framework. Project builds fine locally in VS 2017. TypeScript version is 2.3 (version 2.4 causes compilation exception).
Read more >
Cannot find type definition file for 'node' in TypeScript
To solve the error "Cannot find type definition file for node", install the node types by running npm i -D @types/node . If...
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