vite-plugin-node icon indicating copy to clipboard operation
vite-plugin-node copied to clipboard

HMR only works after the application web page is reloaded

Open PurpleTape opened this issue 2 years ago • 2 comments

Hello! I'm trying to make a telegram bot with NestJS + grammY.

However, during the development process, I came across that the HMR functionality does not work until I reload the web development link (such as http://localhost:5173/). That is, the new code is not applied until I manually reload the web development link.

Thus, during the development process after editing the code, I need to reload the web development link in the browser every time, and only after that the updated version of the code will be applied in the telegram bot.

What settings can I apply so that HRM is applied automatically, without having to reload the web development link? Thanks!

PurpleTape avatar Nov 24 '23 11:11 PurpleTape

Hey I am facing the same issue, did you manage to resolve this?

shubhuchoubey avatar Apr 18 '24 16:04 shubhuchoubey

@shubhuchoubey, right now I'm just reloading the web development page to apply the changes to the code....

PurpleTape avatar Apr 21 '24 09:04 PurpleTape