[Bug]: yarn is not following yarn.lock for hoisting - webpack duplicates #27017
Labels
Area: Typescript
dependencies
Pull requests that update a dependency file
Resolution: Won't Fix
Not going to fix an issue due to various factors
Library
not applicable
System Info
Are you reporting Accessibility issue?
no
Reproduction
Looks like
yarn
is not followingyarn.lock
.This causes type mismatches and unexpected TS errors.
Bug Description
Discovered in this PR #26928
Actual Behavior
webpack 5
and all its dependencies are duplicated within particular@types/*/node_modules
family of packagesyarn.lock excerpt:

@types package not hoisting its dependencies:

Packages that contain webpack dupes:
Expected Behavior
yarn
should hoist webpack to root, thus not creating types dupes that are causing issuesLogs
No response
Requested priority
Normal
Products/sites affected
fluent infra
Are you willing to submit a PR to fix?
yes
Validations
The text was updated successfully, but these errors were encountered: