Skip to content

TypeError: Cannot read properties of undefined (reading 'util') in timestamp.js when using ts-node #56

@HephX

Description

@HephX

I'm running my TypeScript project with ts-node, and I'm getting the following error in the generated timestamp.js from jito-ts:

TypeError: Cannot read properties of undefined (reading 'util')
    at timestamp.js:86:23

// offending line:
if (minimal_1.default.util.Long !== long_1.default) {

minimal_1.default is undefined, even though protobufjs/minimal is correctly installed.
The esModuleInterop flag is enabled in my tsconfig.json.

This setup used to work — possibly this is related to a recent update of protobufjs or Node?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions