Comments (5)
That's because 8.2 changes the runtime of the plugin to node 18 which uses the new serverless SDK.
As said, you can add @aws-sdk/client-lambda
as a dev dependency and the error should go away.
However, the issue is still that the webpack plugin shouldn't be bundling the warmer lambda.
from serverless-plugin-warmup.
You need to declare the warmup plugin after the webpack plugin to avoid it being transpiled as it is not needed.
Cheers!
from serverless-plugin-warmup.
@juanjoDiaz I have declared warmup plugin after the webpack plugin but still getting this issue 🤔 .
from serverless-plugin-warmup.
Hi @andrzej-hanusek-tg ,
I get a lot of these and it's always something to do with the different bundling pluging using different lifecycle hooks.
Which also impacted by the order in which you declare the plugins.
I have no idea of which bundling plugin you are using, in which order you are declaring the plugins, which versions are you using, etc.
So I need more context if you need help. A sample project where I can reproduce the issue is the faster way.
I can't do anything about webpack plugin lifecycle hook.
You might want to install @aws-sdk/client-lambda
as a dev dependency so webpack can do the bundling (even if warmup then ignores the bundled version of the lambda) or configure it as a external dependency that webpack should try to bundle as it is installed globally in the lambda.
from serverless-plugin-warmup.
@juanjoDiaz Downgrading plugin to the 8.1.0 helps.
from serverless-plugin-warmup.
Related Issues (20)
- Packaging should not include service level patterns HOT 2
- Alternative event bus HOT 5
- Customizable Warmup endpoint HOT 7
- warmup not working: is it because I use docker or I did something wrong? HOT 6
- Not working with Serverless Webpack HOT 2
- AWS SDK v3 upgrade is a breaking change HOT 8
- Is @aws-sdk/client-lambda now a peer dependency? HOT 2
- Websocket warmup HOT 2
- Review lifecycle hooks of different plugins to ensure that there are no issues HOT 1
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 2
- Is the pricing still accurate in Readme? HOT 1
- Deployment failed on Windows when using warmup plugin HOT 2
- getting issue when we update nodejs 18.x HOT 2
- How to disable warmers by default, and enable them only for specific lambdas? HOT 2
- Missing folders in warmup lambda once deployed on newer serverless versions HOT 3
- Missing configuration option `alias` from schema
- [Clarification] What is prewarm actually doing? HOT 1
- v8.2.1 requires custom config when used with serverless-esbuild HOT 7
- Description error? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-plugin-warmup.