-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn-deduplicate and I are confused about @babel/traverse dependency #1403
Comments
I’d recommend using Yarn 1.22.22 - it has a fix relating to lockfiles for aliased dependencies. https://github.com/yarnpkg/yarn/releases/tag/v1.22.22 As for why Metro has this weird dependency - it’s due to a caching bug in Babel where traversing an AST without going through a transform (as Installing two separate copies of Let us know if updating Yarn doesn’t fix your issue. |
(I can’t speak for Renovate, but if it’s merging dependencies that are explicitly aliased that sounds like a Renovate bug - maybe they need to update Yarn..) |
Thanks for the reply. I'm going to use the latest yarn version and monitor the repository for a while. Since there's no real problem with metro here, I'll close the issue. |
Do you want to request a feature or report a bug?
Opening the issue to see if it's possible to consolidate dependencies.
I'm trying to understand why the metro-source-map package installs both
@babel/traverse
and@babel/traverse--for-generate-function-map
here.What is the current behavior?
Some of my teams PRs will have these dependencies combined in yarn.lock, while other PRs will have
@babel/traverse--for-generate-function-map
separated. Our project utilizes yarn-deduplicate as part of the postinstall process, and we also use Renovate to help automate upgrades.Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
My project is using react-native v0.76, babel version is 7.26, node version is 22.12, yarn version is 1.22.19
The text was updated successfully, but these errors were encountered: