Serverless-offline: 3.25.5 breaks compatibility with serverless-webpack

Created on 5 Jul 2018  路  6Comments  路  Source: dherault/serverless-offline

I still need to dive into this to find the root cause, but it seems that changes in the last 3.25.5 update broke startup of serverless-offline when used in combination with serverless-webpack. Either one of both plugins "does something wrong".

With 3.25.4 startup works as expected and the last log line is Serverless: Offline listening on http://localhost:3000. However, after updating to 3.25.5 it just _hangs_ and never starts up the web server.

Most helpful comment

v3.25.6 !

All 6 comments

I can confirm that. In my case I don't use any other plugin.

Here's the serverless.yml to reproduce the bug:

service: test

provider:
  name: aws
  runtime: nodejs8.10

plugins:
  - serverless-offline

functions:
  hello:
    handler: handler.greeter
    events:
      - http:
          path: /hello-world
          method: POST
          cors: true

Version 3.25.4 workd, whereas 3.25.5 just returns without starting the server.


Edit: Here's the comparison between 3.25.4 and 3.25.5.

@arabold I found the issue and PRed the fix via #446.

/cc @arabold

馃 not sure if this is the end of the story...

Now it's not terminating if I hit CTRL+C. It just hangs in the Offline halting... state.

Just updated #446 so that it reverts #437.

v3.25.6 !

v3.25.6 !

Thanks @dherault 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnalborczyk picture dnalborczyk  路  3Comments

JimLynchCodes picture JimLynchCodes  路  4Comments

mattmeye picture mattmeye  路  4Comments

stunningpixels picture stunningpixels  路  3Comments

Dong9769 picture Dong9769  路  4Comments