NekitCorp / chrome-extension-svelte-typescript-boilerplate

Boilerplate for Chrome Extension Svelte Typescript project
237 stars 50 forks source link

HMR for svelte components injected into page through content script is not working #17

Closed RafatRifaie closed 9 months ago

RafatRifaie commented 1 year ago

So im working on a settings menu that is supposed to be shown to user on a button click. Im running in dev mode, refresh the page, open the settings menu, and start changing my svelte file, but none of the changes reflect in the dom for the settings menu component. Is this normal behavior?

RafatRifaie commented 1 year ago

Thats weird, from the looks of it i need to change, say the background color, twice, only for the first change to reflect. i change it to red nothing happens, then i change it to blue, and now its red, and then i change it to yellow, and now its blue

NekitCorp commented 1 year ago

Hi, unfortunately it's very hard to say what is the reason without the source code and other possible third party factors. Is it possible for you to make a minimally reproducible example and put it on any online code editor?

https://github.com/NekitCorp/chrome-extension-svelte-typescript-boilerplate/assets/15874982/5484aa08-84f8-442e-9519-c05d9783e4ce