-
Notifications
You must be signed in to change notification settings - Fork 28
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
Incorrect dependency on juggler and strong-remoting #5
Comments
I checked the code, apparently this connector uses juggler's internals that are not part of loopback-connector, the solution thus won't be trivial. I am proposing two steps:
|
This won't solve the problem, it will only push the copy of In the light of the above, I prefer to do a proper fix and refactor the code to remove the dependency on juggler. |
What if we just move the juggler to dev deps and always use the version provided by the app's loopback node_modules? |
That is an option too. It will require some change in loopback and/or juggler to expose the stuff used by remote connector in a public API that is accessible by the connector. |
Why? Shouldn't the connector be able to get at the juggler via |
No necessarily. Once we change juggler from peer dep to a regular dep, it is possible to end up with the following layout:
Depending on juggler being require-able from remote-connector is IMO brittle and sort of a bad practice. |
We are also depending on strong-remoting, which causes similar issues. Especially now that strong-remoting@3 has major breaking change compared to strong-remoting@2 (see strongloop/strong-remoting#343). As a temporary stop gap, I am thinking about cutting a new major version of loopback-connector-remote that will support only LoopBack v3+, and keep the current version line 1.x for loopback v1 and v2. |
done. |
Since the last comment was almost 2 years ago, closing due to inactivity. Please create a new issue if you are still running into problems. |
The connector directly depends on
loopback-datasource-juggler
, which is a recipe for problems, as it causes multiple instances of the juggler to be loaded in the Node process.Since loopback depends on the remote connector itself, this problem happens in every loopback application.
All other connectors depend on
loopback-connector
- see strongloop/loopback#275./to @kraman @ritch
The text was updated successfully, but these errors were encountered: