Snapchat / djinni

A tool for generating cross-language type declarations and interface bindings. Djinni's new home is in the Snapchat org.
Apache License 2.0
179 stars 50 forks source link

Fix TS compilation error on tsc 4.5.4 #153

Closed mutagene closed 1 year ago

mutagene commented 1 year ago

Fixes for error when running bazel run //test-suite:server-ts -

../../djinni/vendor/third-party/proto/ts/test.ts:3:23 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

3 import * as Long from "long";
                        ~~~~~~

../../djinni/vendor/third-party/proto/ts/test2.ts:3:23 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

3 import * as Long from "long";
li-feng-sc commented 1 year ago

Thank you! I'll run some tests with Snap's codebase and get back to you!