You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error compiling after moving to 8.2.1
Module not found: Error: Can't resolve '@aws-sdk/client-lambda' in '~/code/serverless/dinghyrace-app/.warmup/apiWarmer'
Looks like as of this change bdb983f it will be required. Just checking as I was surprised by this failure. (I know I should be using the v3 API in my serverless app, but I just haven't got round to migrating...)
The text was updated successfully, but these errors were encountered:
8.2.1Latest updates the warmer lambda to node18.
Node18 lambdas automatically include the v3 SDK instead of the v2.
It seems that you are doing some sort of bundling.
If so, AWS SDK should be excluded since it's included by default in all lambdas.
Not including the SDK in the lambda helps getting smaller lambas with faster startup time.
If you really want to package it for whatever reason you need to have it as a peer-dependency just as you probably have the v2 SDK at the moment.
I'm getting an error compiling after moving to 8.2.1
Module not found: Error: Can't resolve '@aws-sdk/client-lambda' in '~/code/serverless/dinghyrace-app/.warmup/apiWarmer'
Looks like as of this change bdb983f it will be required. Just checking as I was surprised by this failure. (I know I should be using the v3 API in my serverless app, but I just haven't got round to migrating...)
The text was updated successfully, but these errors were encountered: