-
Notifications
You must be signed in to change notification settings - Fork 173
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
Missing dependency on preact / react (ghost dependency) #262
Comments
Why would optional peer deps on both force users to install both? If they're both optional then they can be installed/used independently in other package managers just fine. |
@rschristian Thinking about it again, you're actually right. So marking them as optional peer dependencies should be way to go. |
Feel free to make a PR (or I can do at some point). Not a maintainer here unfortunately so I can't actually get it in, but w/ a PR made, it's at least available for easy merging in the future. |
This module tries to import / require from
preact
, but does not declare it as a dependency in itspackage.json
(a ghost dependency). This is an error, yarn requires all dependency to be listed properly:The same goes for
react
. Possible ways how the dependencies could be fixed:(will force users to install both react and preact)create 2 separate NPM packages, so that each package can declare its dependencies properlyWorkaround
For people affected: You can add the following bandage aid to fix the declared dependencies (file
.yarnrc.yml
):The text was updated successfully, but these errors were encountered: