custom-elements-hmr-polyfill icon indicating copy to clipboard operation
custom-elements-hmr-polyfill copied to clipboard

Not working with lit@3

Open zkat opened this issue 1 year ago • 1 comments

Hi, I'm trying to use this plugin with lit@3, and the redefinition apparently happens, and the Proxy gets defined and everything, but the element never renders. Any idea what might be going on?

zkat avatar May 17 '24 17:05 zkat

Sorry must have missed notification about this one. Maybe we mess override some methods lit defines/ or lit overrides something we define/caches. So when its library creating web-componets a lot can go wrong

Have you tried this: https://open-wc.org/docs/development/hot-module-replacement/

if you still need this, then please create a very simple sample repo using vitejs then I can prob have a look. Just cant promise Ill get it to work :-)

vegarringdal avatar Jul 21 '24 10:07 vegarringdal