You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error when trying to build a typescript project using @ovotech/castle:
node_modules/@ovotech/castle/node_modules/@ovotech/avro-kafkajs/dist/AvroTransformBatch.d.ts:4:23 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
4 import * as Long from 'long';
Using node 20.5.1 and typescript 5.1.6 with esModuleInterop enabled in tsconfig.json.
I think its related to this issue. If I replace the offending line:
import * as Long from 'long';
with
import Long = require('long');
The build completes
The text was updated successfully, but these errors were encountered:
I got this error when trying to build a typescript project using
@ovotech/castle
:Using node 20.5.1 and typescript 5.1.6 with
esModuleInterop
enabled intsconfig.json
.I think its related to this issue. If I replace the offending line:
with
The build completes
The text was updated successfully, but these errors were encountered: