-
Notifications
You must be signed in to change notification settings - Fork 94
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
fix: add React 16 & 18 to peer dependencies #277
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a160e10:
|
Hi @nolanleung, can you please explain why do you think it is needed and provide more context into where do you execute the This library works with all React versions greater or equal to 16, not just 18, so adding version 18 to dependencies would be confusing. |
@michalochman I'm encountering the same issue. When using React version 18,
|
Hey @michalochman thanks for the reply! Since You can try yourself with the following: React 16
Running
React 18
Running
[0] https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies |
@michalochman when do you reckon this'll be merged and published to NPM? I really want to start using |
Good point @nolanleung, I totally forgot version 17 was specified and didn't check before writing my comment, apologies for that and thank you for reporting the issue. I will update it with |
Fixed in |
npm install
fails when using React 18 because it is missing from peer dependencies.