-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Reporting protobuf: conflict with other libraries #3312
Comments
I too am experiencing problems with my application's functionality with this tampering of the protobufjs library. What I have done as a temporary measure to prevent this const protobufJS = require('protobufjs/minimal');
const utilProxy = new Proxy(protobufJS.util, {
set(obj, prop, value) {
if (prop !== "Long") {
obj[prop] = value;
}
}
});
protobufJS.util = utilProxy; Hopefully the Apollo team finds a better means of dealing with this soon. |
Thanks for reporting this @pierre-elie I just hit this recently, too, trying to use |
Thank you all for the report! This is resolved in the latest release: Please update your |
apollo-engine-reporting-protobuf
0.4.0
12.10.0
apollo-engine-reporting-protobuf
modifies the behavior of 3rd party packageprotobufjs
by removing its support forLong
:apollo-server/packages/apollo-engine-reporting-protobuf/src/index.js
Lines 2 to 8 in e8faacb
This is an issue for other packages depending on
protobufjs
, in my case@google-cloud/logging
.Whenever I try to send logs via Google Cloud's lib I get the following exception:
...which makes sense, since
Long
s are not supported anymore by the lib.It seems very "aggressive" to change a global library potentially used by other dependencies.
The text was updated successfully, but these errors were encountered: