Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can't import es6 module in typescript project #234

Open
kmb64 opened this issue May 4, 2020 · 0 comments
Open

Can't import es6 module in typescript project #234

kmb64 opened this issue May 4, 2020 · 0 comments

Comments

@kmb64
Copy link

kmb64 commented May 4, 2020

When trying to do an import such as the following:

import WebcryptoSocket from '@webcrypto-local/client';

Typescript won't compile and has the following error:

node_modules/tsprotobuf/dist/types/type.d.ts
TypeScript error in node_modules/tsprotobuf/dist/types/type.d.ts(3,13):
'=' expected. TS1005

1 | import { Type } from "protobufjs";
2 | import { IConverter } from "./converter";

3 | import type { ObjectProto } from "./object_proto";
| ^
4 | export interface IProtobufSerializable {
5 | importProto(raw: ArrayBuffer): PromiseLike;
6 | exportProto(): PromiseLike<ArrayBuffer | undefined>;

Version 1.0.14

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

No branches or pull requests

1 participant