React-native yarn workspaces/wml don't load imported modules that contains an installed package

146 Views Asked by At

I tried to implement react-native with workspaces to share the business logic across mobile and web application, it works well on the web, but it doesn't work or even load files on react-native. I ended up using wml but it cannot load a file from the shared package that's importing packages like axios or so.., although these packages are already installed there, and it works as expected on web.

1

There are 1 best solutions below

0
On BEST ANSWER

I fixed it by using lerna instead of yarn workSpaces / wml