CodeGenieApp / CodeGenieApp/serverless-express
Type error with Koa
- Lenguaje dominante
- JavaScript
- Estrellas
- 5.3k
- Forks
- 676
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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'.
```
Guía de contribución
Línea de trabajo
Start by reproducing the build error at server/index.ts:10 with Koa 2.13.4 and @vendia/serverless-express 4.5.2. Inspect the types involved in the reported RequestListener mismatch and determine what compatibility behavior is expected; done means the TypeScript build completes without TS2322 for this setup.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, express, node.js, typescript
- Área
- api, backend, cloud
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100