CodeGenieApp/serverless-express

cant import middleware as es6 module

开放

#527 创建于 2022年6月9日

 (6 条评论) (8 个反应) (0 位负责人)JavaScript (674 个派生)batch import
help wanted

仓库指标

星标
 (4,977 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Hey, i'm trying to consume the middleware module as esm moudle with no luck tried import {eventContext} from '@vendia/serverless-express/middleware' but got an error stating there is no such module.

how can import the middleware (in order to get the eventContext) in a modern way (i'm using version 3.4.0) p.s all the examples in docs wont show how to use import but only the require way . thanks

贡献者指南