Skip to content

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

Open
@marcolarosa

Description

@marcolarosa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions