CodeGenieApp/serverless-express

cant import middleware as es6 module

Open

#527 geöffnet am 9. Juni 2022

Auf GitHub ansehen
 (6 Kommentare) (8 Reaktionen) (0 zugewiesene Personen)JavaScript (674 Forks)batch import
help wanted

Repository-Metriken

Stars
 (4.977 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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