Skip to content
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

TypeError: Cannot read property 'MethodInfo' of undefined #5

Open
marcolarosa opened this issue Oct 26, 2021 · 0 comments
Open

TypeError: Cannot read property 'MethodInfo' of undefined #5

marcolarosa opened this issue Oct 26, 2021 · 0 comments

Comments

@marcolarosa
Copy link

When using the latest release (0.0.35) I get the error TypeError: Cannot read property 'MethodInfo' of undefined when trying to import the GatewayAPIClient.

import {
    GatewayAPIClient,
} from "@cs3org/cs3apis/cs3/gateway/v1beta1/gateway_api_grpc_web_pb.js";

However, if I edit the file gateway_api_grpc_web_pb.js and add the following code at line 13 (just after grpc.web = require('grpc-web')) the import statement works.

grpc.web.AbstractClientBase = {
         MethodInfo: function() {}
}

Version of grpc-web is 1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant