```window.customElements.define("m3-stars", Stars:...
# javascript
p
Copy code
window.customElements.define("m3-stars", Stars::class.js.unsafeCast<() -> dynamic>())
Any idea why this fails? Browser says the second parametr is not a function. The code is from https://docs.fritz2.dev/WebComponents.html#use-webcomponents
b
Probably best asked in #fritz2
t
Could you share
Stars
declaration?