We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Versions of peer dependencies should match between react and @types/react.
react
@types/react
"@types/react": "17 || 18", "react": "0.14 || 15 || 16 || 17 || 18"
npm i [email protected] on a package with react@16 and @types/react@16
npm i [email protected]
react@16
@types/react@16
npm error Could not resolve dependency: npm error peerOptional @types/react@"17 || 18" from [email protected] npm error node_modules/html-react-parser npm error html-react-parser@"5.1.10" from the root project npm error npm error Conflicting peer dependency: @types/[email protected] npm error node_modules/@types/react npm error peerOptional @types/react@"17 || 18" from [email protected] npm error node_modules/html-react-parser npm error html-react-parser@"5.1.10" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.
The text was updated successfully, but these errors were encountered:
@hbendev would you like to open a PR? I believe the fix would be to update this line:
- "@types/react": "17 || 18", + "@types/react": "0.14 || 15 || 16 || 17 || 18",
Sorry, something went wrong.
build(peer-deps): match allowed peer dependency ranges of react and @…
ba43957
…types/react (remarkablemark#1462)
fix(package): match allowed peer dependency ranges of react and @type…
0809ac5
…s/react (#1463) Fixes #1462
remarkablemark
Successfully merging a pull request may close this issue.
Expected Behavior
Versions of peer dependencies should match between
react
and@types/react
.Actual Behavior
Steps to Reproduce
npm i [email protected]
on a package withreact@16
and@types/react@16
Reproducible Demo
Environment
Keywords
The text was updated successfully, but these errors were encountered: