CodeGenieApp / CodeGenieApp/serverless-express

Typescript: Cannot find module 'aws-lambda' or its corresponding type declarations.

Aperta
#374 6 commenti 6 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
5.3k
Fork
676
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I get this error from src/configure.d.ts when using typescript:
>node_modules/@vendia/serverless-express/src/configure.d.ts:2:25 - error TS2307: Cannot find module 'aws-lambda' or its corresponding type declarations.

I don't see aws-lambda in the package.json at all. I was able to get it to build by adding @types/aws-lambda as a devDependency.

@vendia/serverless-express: 4.3.2
typescript: 4.1.5

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.