dherault / dherault/serverless-offline

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

Open
#1,703 2 comments 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
811
Avg merge
2d 4h
Merged PRs (30d)
3

Description

## 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
- node v14.19.0
- serverless-offline v8.8.0
- serverless v3.7.4

updated to
- node v18.14.0
- serverless-offline v12.0.4
- serverless v3.7.4

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with Node v18.14.0, serverless-offline v12.0.4, and serverless v3.7.4, using `sls offline` and changing application code. Compare the behavior with v8.8.0 and inspect the relevant implementation under `node_modules`; done means code changes are picked up without rerunning `sls offline`.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.