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.

typescript error after new release (4.5.1)

See original GitHub issue

4.5.1 causes the following errors


../../node_modules/keyv/src/index.d.ts(92,3): error TS1070: 'async' modifier cannot appear on a type member.
../../node_modules/keyv/src/index.d.ts(93,3): error TS1070: 'async' modifier cannot appear on a type member.
../../node_modules/keyv/src/index.d.ts(94,3): error TS1070: 'async' modifier cannot appear on a type member.
../../node_modules/keyv/src/index.d.ts(95,3): error TS1070: 'async' modifier cannot appear on a type member.

Typescript version is 4.8.4 Node version is 16.0.0

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:18
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
jaredwraycommented, Nov 7, 2022

Keyv version 4.5.2 has been released with a fix (thanks @ODudek)

7reactions
DeanPoulincommented, Nov 7, 2022

Thanks @jaredwray.

For us it’s coming through as a sub-dependency:

$ npm list keyv
├─┬ @semantic-release/gitlab@9.5.0
│ └─┬ got@11.8.5
│   ├─┬ @types/cacheable-request@6.0.2
│   │ └─┬ @types/keyv@4.2.0
│   │   └── keyv@4.5.1 deduped
│   └─┬ cacheable-request@7.0.2
│     └── keyv@4.5.1 deduped
└── keyv@4.5.1

setting peer dependency to 4.5.0 in package.json resolved this:

  "peerDependencies": {
    "keyv": "4.5.0"
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 4.5
TypeScript 4.5 introduces a new utility type called the Awaited type. This type is meant to model operations like await in async functions,...
Read more >
[Bug]: typescript patch fails to apply with typescript@4.5 #3722
This is replicable on first install only — on subsequent uninstall/reinstalls of typescript@^4.5.1-rc , the install appears to succeed but ...
Read more >
Announcing TypeScript 4.5 RC - Microsoft Developer Blogs
Today we're excited to announce our Release Candidate (RC) of TypeScript 4.5! Between now and the stable release of TypeScript 4.5, ...
Read more >
What's new in TypeScript 4.5 - LogRocket Blog
TypeScript 4.5 includes enhanced Awaited type, supported lib from node_modules, and the realpathSync.native function.
Read more >
typescript error when compiling node module - Stack Overflow
I downloaded Typescript, Express, Sequelize, Postgres Example and run npm install and npm start . On npm start it is producing some errors....
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