dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.2k stars 794 forks source link

Hot Reloading is Delayed #1584

Closed karo-dc closed 2 years ago

karo-dc commented 2 years ago

Bug Report

Current Behavior

Hot reloading is working with delay. For avoiding that I have found temporary solution downgrade to 8.8.1 version.

Sample Code

N/A

service: my-service

plugins:
  - serverless-s3-local
  - sls-plugin-additional-stacks
  - serverless-webpack
  - serverless-offline
  - sls-plugin-dynamodb-offline
  - serverless-offline-sns
  - serverless-prune-plugin
  - serverless-plugin-custom-roles
  - serverless-plugin-aws-alerts

provider:
  runtime: nodejs16.x
  stage: dev

Expected behavior/code

Should work as in 8.8.1 version.

Environment

Thanks in Advance.

dnalborczyk commented 2 years ago

thank you for filing the issue @karo-dc

how much delay are you experiencing? also, are you running your serverless process with the --reloadHandler flag? this is required to enable reloading in v9 and v10.

karo-dc commented 2 years ago

@dnalborczyk thanks for response, yeah, I think I missed that flag, let me check with that flag as well.