CodeGenieApp / CodeGenieApp/serverless-express

cant import middleware as es6 module

Open
#527 6 comments 8 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
5.3k
Forks
676
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.