CodeGenieApp/serverless-express

cant import middleware as es6 module

Open

#527 ouverte le 9 juin 2022

Voir sur GitHub
 (6 commentaires) (8 réactions) (0 assignés)JavaScript (674 forks)batch import
help wanted

Métriques du dépôt

Stars
 (4 977 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur