Skip to content

aws-lambda used in ApolloServer.d.ts not referenced in package.json #2351

@carlmanaster

Description

@carlmanaster

When I run tsc on my project which includes apollo-server-lambda 2.4.2 but not aws-lambda, this error is returned:

node_modules/apollo-server-lambda/dist/ApolloServer.d.ts:1:20 - error TS2307: Cannot find module 'aws-lambda'.

1 import lambda from 'aws-lambda';

I can resolve it by
yarn add @types/aws-lambda aws-lambda

but believe that this should be done at the library level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧬 typingsRelates to TypeScript changes or improvements.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions