dherault / serverless-offline

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

Hot-Relaod not working for latest version of serverless-offline #1703

Open Dhruv-Garg79 opened 1 year ago

Dhruv-Garg79 commented 1 year ago

Bug Report

Earlier I was using serverless-offline version 8.8.0 and after updating to the latest version 12.0.4, the hot reload feature has stopped working. i.e. when I make any change in the code, I have to run sls offline again.

earlier I was using

updated to

After updating to the latest version of the plugin hot reload stopped working.

A tried a hack to use serverless-offline v8.8.0 and update supported runtime from node_modules to include nodejs18.x and it was working fine. But I would like the latest version to have a feature that is working in old 8.8.0

arcaela commented 1 year ago

I have the same issue, but i fixed usin NodeJS18.X as runtime, and this is my setup