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?
2 Replies
That's a typescript error, looks like one of your packages is using React JSX instead of Solid?
There is no error in IDE itself. The app itself is in React. Also there is one React based lib as a dependency, but I don't think that could affect anything.
as a workaround I added: