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.
When I run
tscon my project which includes apollo-server-lambda 2.4.2 but not aws-lambda, this error is returned:I can resolve it by
yarn add @types/aws-lambda aws-lambdabut believe that this should be done at the library level.