expo-yarn-workspaces and yarn v2

Please provide the following:

  1. SDK Version: 42
  2. Platforms(Android/iOS/web/all): all

Is it possible to use expo-yarn-workspaces with yarn v2? I’m having trouble getting the symlinks to behave properly in a monorepo, and it seems like this is causing metro problems bundling the code from react native.

Here’s the error:

Failed building JavaScript bundle.
SyntaxError in ../../node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js

Any help with this would be much appreciated.

Hey @horizons, with yarn v2 (berry) being such a fundamentally different system we don’t support it currently. That’s not to say that you can’t get it to work with expo-yarn-workspaces but you will be on your own to figure things out and to handle any issues that you encounter.

Cheers,
Adam

Got it, thanks for the head up. I was able to get it working. Appreciate the feedback.

1 Like

Very nice! Glad to hear it.

Hi,

Are you able to run it ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.