Library
not applicable
System Info
Are you reporting Accessibility issue?
no
Reproduction
Looks like yarn is not following yarn.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 packages
yarn.lock excerpt:

@types package not hoisting its dependencies:

Packages that contain webpack dupes:
- @types/webpack-hot-middleware@2.25.6
- @types/webpack-bundle-analyzer@4.4.3
- @types/circular-dependency-plugin@5.0.5
Expected Behavior
yarn should hoist webpack to root, thus not creating types dupes that are causing issues
Logs
No response
Requested priority
Normal
Products/sites affected
fluent infra
Are you willing to submit a PR to fix?
yes
Validations
Library
not applicable
System Info
Are you reporting Accessibility issue?
no
Reproduction
Looks like
yarnis not followingyarn.lock.This causes type mismatches and unexpected TS errors.
Bug Description
Discovered in this PR #26928
Actual Behavior
webpack 5and all its dependencies are duplicated within particular@types/*/node_modulesfamily of packagesyarn.lock excerpt:

@types package not hoisting its dependencies:

Packages that contain webpack dupes:
Expected Behavior
yarnshould 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