Giter Club home page Giter Club logo

Comments (5)

juanjoDiaz avatar juanjoDiaz commented on September 2, 2024 1

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.

juanjoDiaz avatar juanjoDiaz commented on September 2, 2024

Hi @Bhirahaspathi-Sairam,

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.

andrzej-hanusek-tg avatar andrzej-hanusek-tg commented on September 2, 2024

@juanjoDiaz I have declared warmup plugin after the webpack plugin but still getting this issue 🤔 .

from serverless-plugin-warmup.

juanjoDiaz avatar juanjoDiaz commented on September 2, 2024

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.

andrzej-hanusek-tg avatar andrzej-hanusek-tg commented on September 2, 2024

@juanjoDiaz Downgrading plugin to the 8.1.0 helps.

from serverless-plugin-warmup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.