Skip to content

Fixed duplicate babel/runtime version#1950

Open
scarlac wants to merge 1 commit intoNozbe:masterfrom
scarlac:fix-dupe-babel
Open

Fixed duplicate babel/runtime version#1950
scarlac wants to merge 1 commit intoNozbe:masterfrom
scarlac:fix-dupe-babel

Conversation

@scarlac
Copy link
Contributor

@scarlac scarlac commented Nov 6, 2025

Fixed duplicate babel/runtime version

The yarn.lock shows the duplication, even within WMDB repo itself. While the lockfile isn't used externally, the duplication looks identical to what a consuming app would experience.

The general advice is:
Avoid using exact versions when installing packages. Libraries must be especially agnostic about this, otherwise they force the consuming apps down hacky paths such as needing to define "resolutions" to avoid complex runtime issues (e.g. 2 versions of React modify the global scope and can cause random crashes, build errors, etc.)

Using fixed version instead of ^/~ is very likely to cause duplicate installation of packages in consuming apps.

Avoiding ^ or ~ causes duplication of sub dependencies in consuming apps
Libraries must be somewhat agnostic to the exact version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant