Skip to content

cannot import webclient as given in example #1

Description

@KushGoyal
import {WebClient} from "cBridge-typescript-client/ts-proto/sgn/gateway/v1/GatewayServiceClientPb";

this is giving import error:

import * as grpcWeb from 'grpc-web';
^^^^^^

SyntaxError: Cannot use import statement outside a module

How can I solve this error?

I am importing the code in a .ts file which is being run on ts-node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions