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

cannot import webclient as given in example #1

Open
KushGoyal opened this issue Jan 4, 2022 · 3 comments
Open

cannot import webclient as given in example #1

KushGoyal opened this issue Jan 4, 2022 · 3 comments

Comments

@KushGoyal
Copy link

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

@h1teshtr1path1
Copy link

Hey, Did you resolved this error?

@KushGoyal
Copy link
Author

i was not able to

@TrezorTop
Copy link

How did it end? Did you find a solution or just didn't use this API?

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

3 participants