Closed YannDanthu closed 1 year ago
We need a release.
@adrai @mcollina
@Uzlopak because of the TS changes? Which version bump? major, minor, patch?
Yes the TS Changes. I would say minor.
v3.2.0 is released
@YannDanthu
Can you please test if with 3.2.0 your issue is fixed or not?
Problem solved 👏
Thank you very much ! 🥇
Prerequisites
Fastify version
3.1.3
Plugin version
No response
Node.js version
18
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.5
Description
Hi,
I have a TS project in ESM mode (type:module) and getting a
not callable
error onawsLambdaFastiify
.package.json
tsconfig.json
lambda-fastify.ts
Will throw a
This expression is not callable.
errorChanging the import statement like this has no impact
I have noticed that the
node_modules/@fastify/aws-lambda/index.d.ts
file does not contain theexport = awsLambdaFastify
at the end which prevents the import to work properly in ESM I suppose (adding it back make it works). I noticed the same in the releases package source code zip file of previous versions as well.Steps to Reproduce
On top of elements from the description, here is the
app.ts
file.app.ts
error is highlighted by the IDE it
lambda-fastify.ts
file as well as runningExpected Behavior
Expect the import awsLambdaFastify to be callable and return a PromiseHandler.
Thank you for the help on this.