Closed michaelmerrill closed 3 years ago
I was importing incorrectly. should be
import serverlessExpress, { getCurrentInvoke, } from '@vendia/serverless-express';
Out of curiosity, how were you importing when you got the error?
I was importing like this:
import { configure, getCurrentInvoke } from '@vendia/serverless-express';
But I should have known better looking at the source.
module.exports = configure // only available as default
module.exports.getCurrentInvoke = getCurrentInvoke. // only available as destructured property
I am seeing this error on 4.3.1, when using imports with TypeScript:
import serverlessExpress, { getCurrentInvoke } from '@vendia/serverless-express'
TS2305: Module '"../node_modules/@vendia/serverless-express/src"' has no exported member 'getCurrentInvoke'.
@abecks could you send a PR to fix that?
import { configure, getCurrentInvoke } from '@vendia/serverless-express';
When trying to access
getCurrentInvoke
I'm getting the following error.Module '"../node_modules/@vendia/serverless-express/src"' has no exported member 'getCurrentInvoke'.