-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Peer dependency warnings #11982
Comments
This reverts the workarounds for #159, #74 and #60, as they are no longer needed. There are a few peer dependency warnings, though the examples work just fine: - The one for NextJS is tracked in vercel/next.js#31887. - CRACO support for CRA@5 is tracked in dilanx/craco#378. - The warnings for CRA are tracked in facebook/create-react-app#11982, except for the `ts-jest` one which is expected, since we're using CRA's `jest`.
I am encountering the same issue with yarn 1.22.15. As far as I have understood, there are differences in how Yarn and NPM look for peer dependencies, and NPM doesn't have this issue. But anyway, I'd expect react-scripts to install the needed peer dependencies, and not leave it up to the user of react-scripts. |
pnpm 6.31 yields the same warnings:
|
Could |
I’m using Yarn 3.2.0 and get the following warning:
which can be muted by adding the following to packageExtensions:
# awaiting fix: https://github.com/facebook/create-react-app/issues/11982
'eslint-plugin-flowtype@*':
peerDependenciesMeta:
'@babel/plugin-syntax-flow':
optional: true
'@babel/plugin-transform-react-jsx':
optional: true |
@lensbart, excellent workaround. I used PNPM which also allows for this behavior. Thank you! |
Would be nice if someone can fix this so we don't need a workaround. |
FYI: pnpm@7 now has |
Track dilanx/craco#378 and facebook/create-react-app#11982 to revert this.
Someone knows if it got fixed? Because i'm still encountering this issue in my CRA with node 16.14.2 and cra 18.0.1 |
fixed peer deps warnings facebook/create-react-app#11982
related github issues: • facebook/create-react-app#12456 • facebook/create-react-app#11982
Describe the bug
Doing a fresh install results in a lot of peer dep warnings.
Did you try recovering your dependencies?
Which terms did you search for in User Guide?
peer dependency warning
Environment
react-scripts@5.0.0
.Steps to reproduce
yarn create react-app my-app
Expected behavior
No warnings of any kind.
Actual behavior
The text was updated successfully, but these errors were encountered: