Search code examples
reactjsreact-nativeyarn-workspaceswml

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


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.


Solution

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