CodeGenieApp / CodeGenieApp/serverless-express

Type error with Koa

Open
#487 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
676
PR merge metrics
No merged PRs in 30d

Description

I get the following TypeScript error when building using Koa version 2.13.4 and @vendia/serverless-express version 4.5.2:

```
server/index.ts(10,51): error TS2322: Type 'import("/path/to/project/node_modules/@types/koa/index.d.ts")' is not assignable to type 'RequestListener'.
--
80 | Type 'import("/path/to/project/node_modules/@types/koa/index.d.ts")' provides no match for the signature '(req: IncomingMessage, res: ServerResponse): void'.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.