Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React Native colliding with typescript types in monorepo

$
0
0

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.enter image description here

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.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>