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

fix: Move react/react-dom to be peerDependencies instead of devDependencies #680

Merged
merged 1 commit into from
Oct 17, 2020

Conversation

francisu
Copy link
Contributor

Proposed solution

Using the Resizable component gets a compile error in typescript v4.0.3 when used with yarn 2 indicating the component is not setup correctly with props.

In addition, it's not possible to reference the component using the yarn 2 dependency mechanism because the react dependency is missing. This cannot be corrected by a yarn 2 "packageExtensions" because react and react-dom are incorrectly listed as devDependencies rather than peerDependencies.

Tradeoffs

None.

Testing Done

yarn test reported clean results. I also tried this (by publishing my own copy) with our code, and both the compile error and dependency problems were resolved.

@francisu francisu changed the title Move react/react-dom to be peerDependencies instead of devDependencies fix: Move react/react-dom to be peerDependencies instead of devDependencies Sep 28, 2020
@francisu
Copy link
Contributor Author

HI, any status on getting this merged? If you like I can file an issue.

@bokuweb
Copy link
Owner

bokuweb commented Oct 17, 2020

@francisu sorry for late.

@bokuweb bokuweb merged commit 7f5b580 into bokuweb:master Oct 17, 2020
@bokuweb
Copy link
Owner

bokuweb commented Oct 17, 2020

v6.7.0 published @francisu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants