CodeGenieApp/serverless-express

cant import middleware as es6 module

オープン

#527 opened on 2022/06/09

 (6 件のコメント) (8 件のリアクション) (0 人の担当者)JavaScript (674 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (4,977 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド