aws-serverless-koa icon indicating copy to clipboard operation
aws-serverless-koa copied to clipboard

Runtime error from aws-serverless-express

Open Townsheriff opened this issue 3 years ago • 0 comments
trafficstars

Getting this issue - TypeError: params.context.succeed is not a function. It is fixed in newer aws-serverless-express package version.

Solution:

import serverlessExpress from '@vendia/serverless-express'; // ^4.5.4
import Koa from 'koa';

const app = new Koa();

module.exports.handler = serverlessExpress({ 
  app: app.callback() 
});

Townsheriff avatar Mar 17 '22 17:03 Townsheriff