karolisk
NX setup with SolidJS and React
I have a monorepo where I create web components with SolidJS and take them into use in React. The app runs fine and individual libs builds ok, but I get error when I build React app:
For serving I have this setup in vite.config.mts for React app:
Probably I need something similar for building.
Maybe someone has ideas about this?
4 replies
Issues when using SolidJS with child web components
Hi, I have problems passing properties to web components that is wrapped in certain web component (modus-toolbar in this case). According to docs I should use "prop:*" but that doesn't compile. It works when I use "attr:*", but this breaks intellisense. And I'm confused because when I hardcode string it works without any prefixes. I create stackblitz example:
https://stackblitz.com/edit/solidjs-templates-7qjaxe?file=src%2FApp.tsx
Thanks for looking into this 🙂
7 replies