The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
#Polymorphic components type
14 messages · Page 1 of 1 (latest)
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
Ok, here's the official way to do this now https://qwik.builder.io/docs/components/overview/#polymorphic-components
Thanks a lot for the heads up @cold snow
can i ask something else completely unrelated, or should i just create another topic?
Best to create another topic, it might already have been answered 🙂
So if I directly copy the example from the docs I'm getting this. Any idea how this is overcome?
So this is the code I did, that's copied directly. Not sure why I'm getting a type error and it doesn't do it in the playground example. Is there like some ts config shenanigans I need to take care of or?
can you run npm ls @builder.io/qwik to make sure all instances of qwik are the same version 1.4.0?
1.4.0 is what it says yea
so no other versions, right? And did you try restarting typescript in your editor?
it's working just fine for me in vscode