Skip to content
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

[core] Clear yarn installation warning #33776

Merged
merged 2 commits into from Aug 11, 2022
Merged

Conversation

michaldudak
Copy link
Member

Fixes the following warning appearing in the terminal when installing yarn packages:

warning Pattern ["@definitelytyped/typescript-versions@latest"] is trying to unpack in the same destination "/Users/michal/Library/Caches/Yarn/v6/npm-@definitelytyped-typescript-versions-0.0.115-e446a350438e6c83df0c2e72004ba586f052f782-integrity/node_modules/@definitelytyped/typescript-versions" as pattern ["@definitelytyped/typescript-versions@^0.0.115","@definitelytyped/typescript-versions@^0.0.115","@definitelytyped/typescript-versions@^0.0.115"]. This could result in non-deterministic behavior, skipping.

@michaldudak michaldudak added the core Infrastructure work going on behind the scenes label Aug 3, 2022
@michaldudak michaldudak requested review from a team August 3, 2022 08:14
@mui-bot
Copy link

mui-bot commented Aug 3, 2022

No bundle size changes

Generated by 🚫 dangerJS against f19bbe7

package.json Outdated
@@ -209,6 +209,7 @@
"**/@babel/preset-react": "^7.16.7",
"**/@babel/preset-typescript": "^7.16.7",
"**/@babel/runtime": "^7.17.2",
"**/@definitelytyped/typescript-versions": "^0.0.121",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share more info on why you landed on this version and why this fixes the issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dtslint specifies its dependency on @definitelytyped/typescript-versions as latest, which leads to this problem. Having the version resolved this way doesn't really change the version used but eliminates the warning.

0.0.121 was the latest version of this package when I authored this PR (it changed since - I'll update it in a bit).

I've seen this problem in other projects as well: thefrontside/bigtest#469

@michaldudak michaldudak merged commit fc1212d into mui:master Aug 11, 2022
@michaldudak michaldudak deleted the yarn-warning branch August 11, 2022 08:24
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants