-
Notifications
You must be signed in to change notification settings - Fork 477
yarn v2 support #1073
Comments
@satishbabariya - anything we can do to help you add support for this in expo-cli? |
@brentvatne, I think we need to add support for yarn's PnP API. |
i personally don't have time to work on that but contributions are welcome! |
Right now Metro doesn't support the Plug'n'Play mode, which is enabled by Berry (Yarn v2) by default (at least in the current nodeLinker: node-module However, there seems to be a bug in Yarn
The command hangs indefinitely and the progress bar doesn't go away until
|
This comment has been minimized.
This comment has been minimized.
This works for me in my expo app In
% yarn --version
2.1.1 Like @fson said, Plug'n'Play has issues with Metro |
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
bump |
No reason to bump this. It's not something Expo can fix since React Native doesn't support Yarn PnP. It is tracked in react-native-community/cli#27 and facebook/metro#308 |
@mekwall this comment seems to suggest maybe otherwise: facebook/metro#308 (comment) But without some more reading I can't know whether that's truly relevant. I don't think that this issue is solely about PnP support, but correct me if I'm wrong. |
Any movement on this? Expo has been holding us back from upgrading Yarn for years now. |
See my comment above. This is not an Expo issue. You can upgrade Yarn to v3 and use it without PnP and it will work just fine with Expo and React Native. It's documented here: https://yarnpkg.com/getting-started/migration |
Ticket IDs: 4954909653, 4954931590, 4954946135, 4954945454, 4954946646 Introduced basic configurations for: - NX - Expo - Prettier - ESLint - TypeScript - Configured Yarn 3 with node_modules linker instead of PnP. expo/expo-cli#1073 - Updated the VSCode dev-container with relevant extensions to streamline the development setup. Co-authored-by: Davit-BetterAngels <davit@betterangels.la>
when using yarn v2 expo can't able to find node_modules folder ( due to yarn v2 dosn't use them instead it uses cache with zip)
The text was updated successfully, but these errors were encountered: