question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Upgrading to 5.0.0

See original GitHub issue

Hi,

Trying to upgrade the plugin to 5.0.0 and I am getting the following error in my pipeline:


Type Error ---------------------------------------------
--
1077 |  
1078 | TypeError: serverless.configSchemaHandler.defineFunctionProperties is not a function

node_modules/serverless-plugin-warmup/src/schema.js:133:34

This is more a request for information\assistance really but I cannot work out what is causing the issue based on the error message, is this something you can assist with?

Environment in build agent

Your Environment Information ---------------------------
--
1133 | Operating System:          linux
1134 | Node Version:              12.20.0
1135 | Framework Version:         1.83.2
1136 | Plugin Version:            3.8.4
1137 | SDK Version:               2.3.2
1138 | Components Version:        2.34.9

Warm up config

warmup:
    folderName: ".warmup"
    cleanFolder: false
    memorySize: 256
    name: "${self:custom.apiPrefix}-keep-alive"
    role:  WarmUpRole
    events:
      - schedule: "cron(0/5 8-17 ? * MON-FRI *)"
    vpc: false
    package:
      individually: true
    concurrency: 2
    timeout: 20
    prewarm: true # Run WarmUp immediately after a deployment
    tags:
      Project: My-Project

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
paulalexcommented, Jan 22, 2021

@juanjoDiaz Thanks for the reply! Ok, that makes sense, I have a ticket to upgrade to v2 but when I initially started to look at this there were so many errors I had to park it.

I just looked on the main plugin readme where it suggested “Recommended v1.33.x or higher”.

I have cancelled the dependabot upgrade for now and rolled back but will need to set aside some more time for the serverless upgrade I think.

Cheers!

0reactions
juanjoDiazcommented, Feb 1, 2021

Yes. The configuration has changed slightly. Please read how to migrate in the readme.

v5 supports multiple warmers so you need to do something like:

warmup:
  default:
    folderName: ".warmup"
    cleanFolder: false
    memorySize: 256
    name: "${self:custom.apiPrefix}-keep-alive"
    role:  WarmUpRole
    events:
      - schedule: "cron(0/5 8-17 ? * MON-FRI *)"
    vpc: false
    package:
      individually: true
    concurrency: 2
    timeout: 20
    prewarm: true # Run WarmUp immediately after a deployment
    tags:
      Project: My-Project

functions:
  hello:
    # ...
    warmup:
      default:
        enabled: true

I’ve name d the warmer default but you can name it however you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build error upgrading from 5.0.0-alpha.20 to 5.0.0 ... - GitHub
After updating the following dependencies, the project fails at build time: "@emotion/cache": "11.1.3", "@emotion/react": "11.1.4", ...
Read more >
Upgrading to BIG-IQ Centralized Management 5.0.0 may fail ...
In rare circumstances, upgrading to BIG-IQ Centralized Management 5.0.0 may fail with a Waiting for BIG-IQ services to become available ...
Read more >
updating react-scripts version from 3.4.0 to 5.0.0 causing Type ...
I am trying to upgrade react-scripts from 3.4.0 to 5.0.0 and it thrown issue when I do 'npm run start', Type Error: Cannot...
Read more >
Work around if Simplicity Studio 5 update to version SV5.5.0.0 ...
Work around if Simplicity Studio 5 update to version SV5.5.0.0 fails with an error about apack.usb.feature.
Read more >
Updating your Zoom Rooms to version 5.0.5
If a Zoom Room that is not running 5.0.0 or above attempts to join a Zoom meeting ... Rooms will not be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found