-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove prop-types
from peer dependencies in our JS libraries
#145
Labels
bug
Report of or fix for something that isn't working as intended
Comments
arbrandes
added
the
bug
Report of or fix for something that isn't working as intended
label
Dec 9, 2022
Hi, I was working on this issue and is blocked by another error I came across while trying to move
Even trying the above two workarounds, I am still facing the same issue as what can be seen in the attached screenshot. What are your thoughts on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In some of our JS repos, we treat
prop-types
as a peer dependency, when it really shouldn't be (as confirmed by the docs forprop-types
itself). Rather, it should be a regular dependency that ships as part of the library.There's been a couple occasions where
prop-types
as a peer dependency causes unnecessary peer dependency conflicts that could be avoided hadprop-types
been considered a regular dependency.The aforementioned docs on
prop-types
that provide guidance on how to depend on the package: https://github.com/facebook/prop-types#how-to-depend-on-this-packageAC
prop-types
as a peer dependency (e.g., https://github.com/openedx/frontend-platform/blob/master/package.json#L76)prop-types
docs to move it to a regular dependency instead in those identified repos.The text was updated successfully, but these errors were encountered: