I am creating a monorepo (yarn workspaces and Lerna) which is structured as follows.
packages/ common/ (shared code) mobile/ (react-native ts) web/ (vite react-ts)
The problem arises when I run yarn build inside the web folder (which has nothing related to react native whatsoever.
These are two of the 47 error messages I'm getting, all of them of the same format. I do not have much experience with monorepos so I have no clue what's going on.
I think this can be solved with yarn "resolutions" option but I can't figure out how.
(I can't use the no hoist option for react native because I need to share common code)
Thank you for your help.