Skip to content

TypeError: Cannot convert a BigInt value to a number #1

@kodenamekrak

Description

@kodenamekrak

I use this package in one of my tools steam-ico-fix and have run into the following error upon calling readBinaryVDF on the latest version

node:buffer:1163
  offset = MathTrunc(offset);
           ^

TypeError: Cannot convert a BigInt value to a number
    at trunc (<anonymous>)
    at adjustOffset (node:buffer:1163:12)
    at Buffer.subarray (node:buffer:1179:11)
    at readBinaryVDF (node_modules/binary-vdf-2/dist/index.js:88:50)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions