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

貢獻者指南