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
UNMET PEER DEPENDENCY #12
Comments
Could it be that version homebridge-lib@4.3.0 is too new for homebridge-hue@0.11.29. That's how I understand the error? |
Yes. Homebridge-hue doesn’t (yet) use the functionality in homebridge-lib that had breaking changes between v4.2.9 and v4.3.0, so it will work alright with this newer version. I introduced the peer dependency setup so multiple plugins could share a single instance of homebridge-lib, using fewer system resources. This way, the plugins share the heartbeat timer and UPnP listener. I’ve also been fantasising about other shared functionality, like exposing a switch to enable/disable homebridge debug logging dynamically (so you would have to restart homebridge with or without However, the peer dependency setup seems far more challenging that I had anticipated. While technically fit for purpose, it’s an a-typical setup, too complex for users, and causing too many issues. I might have to revert to homebridge-lib being a regular dependency, installed with each plugin, and find another way share a single instance, very much like homebridge provides a single instance of HAP-NodeJS to all plugins. |
Yes. Homebridge-hue doesn’t (yet) use the functionality in homebridge-lib that had breaking changes between v4.2.9 and v4.3.0, so it will work alright with this newer version.
I introduced the peer dependency setup so multiple plugins could share a single instance of homebridge-lib, using fewer system resources. This way, the plugins share the heartbeat timer and UPnP listener. I’ve also been fantasising about other shared functionality, like exposing a switch to enable/disable homebridge debug logging dynamically (so you would have to restart homebridge with or without -D).
However, the peer dependency setup seems far more challenging that I had anticipated. While technically fit for purpose, it’s an a-typical setup, too complex for users, and causing too many issues. I might have to revert to homebridge-lib being a regular dependency, installed with each plugin, and find another way share a single instance, very much like homebridge provides a single instance of HAP-NodeJS to all plugins.
Greetings Nastra |
Thanks, @Nastras. |
The latest versions of my plugins, once again, list homebridge-lib as regular dependency. homebridge-lib@4.3.3 can no longer be loaded by Homebridge. The first plugin loaded also registers homebridge-lib with Homebridge, providing the heartbeat and UPnP listener to the other plugins. |
Hello, Erik,
i just noticed that when calling npm list -g --depth=0 on homebridge-lib an error is displayed. I installed Homebridge-lib again Error is still present.
King Regards
Nastra
The text was updated successfully, but these errors were encountered: