CodeGenieApp / CodeGenieApp/serverless-express
Typescript: Cannot find module 'aws-lambda' or its corresponding type declarations.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 5.3k
- Forks
- 676
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Check package.json alongside the declaration reported at src/configure.d.ts and reproduce the TypeScript 4.1.5 build. Confirm that the package metadata provides the missing aws-lambda type declarations and that the TS2307 error no longer appears.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, node.js, typescript
- Bereich
- backend, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100