serverless-plugin-offline-dynamodb-stream icon indicating copy to clipboard operation
serverless-plugin-offline-dynamodb-stream copied to clipboard

Doesn't working with serverless + node + typescript

Open gapinto opened this issue 5 years ago • 1 comments

Firstly congratulation!

I'm working on a POC where I'm using node + typescript + serverless.

I'm with the same problem related here: Crashes when starting offline

But I believe that the problem here is because the compiled javascript directory is: ./build

gapinto avatar Apr 26 '19 14:04 gapinto

@gapinto you that plugin get root location of the handlers' files from serverless-offlice plugin config. it defaults to the current directory.

custom:
  serverless-offline:
    host: 0.0.0.0
    port: 4000
    dontPrintOutput: true
    location: build

hope this helped.

emmkong avatar Apr 29 '19 14:04 emmkong