-
Notifications
You must be signed in to change notification settings - Fork 331
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
Unwanted peer dependency message #44
Unwanted peer dependency message #44
Comments
Thanks for reporting. I guess we can add csstype as dependency, just like you mention. Since it's types only it shouldn't matter, other than giving you a better dev experience when styling. |
Sorry @timolins but I don't think d60adb6 fixes the issue in RHT's users. Since it's "dev" dependency, it's not installed when the user installs RHT as their dependencies, so the warn would still be there Maybe it's better to:
|
@thien-do @timolins sorry to pull this issue out of the dark but we are trying to clean up our repo/packages and see the same resolution error with yarn: |
Hard to say without knowing the codebase, but I think the best bet is you should not be asked to have a dependency if you don't use it directly. This means the best option should be:
While the best workaround should be:
|
@thien-do ok i went ahead and added it as a dev dependency however I am still getting the same issue. The same resolution warning pops up. Any idea what to do here? |
oh if that's the case it seems Yarn (or whatever package manager you are using) is more strict these days. Look like we will need to fix it properly (so either from RHT or from Goober) |
I'm running into this as well with latest yarn. |
When installing
react-hot-toast
(or runningnpm install
in a project that already hasreact-hot-toast
) the following warning is shown:Documentation says nothing about need of
csstype
.Maybe
react-hot-toast
should make it regular dependency if it's needed?On the other note, there are users, who are using just headless mode, and they don't need neither
goober
orcsstype
.The text was updated successfully, but these errors were encountered: