Skip to content

Support environments without native bigint #1096

Closed
@Filmaluco

Description

@Filmaluco

I am trying to update a project to the latest libraries, and have the following error:

Screenshot 2021-08-26 at 16 30 51

"dependencies": { ... "@stacks/auth": "^2.0.1", "@stacks/connect": "^5.0.5", "@stacks/profile": "^2.0.1", "@stacks/storage": "^2.0.1", "@stacks/transactions": "^2.0.1", ... }

We were using node: 12.3.0
Updating only this libraries resulted in a error telling us we needed to use a higher version >= 12.13.0

But even inside the node JS 14.17.5
Math.pow(BigInt(2), BigInt(128)) - BigInt(1);
will result in the error:

Cannot convert a BigInt value to a number

Can someone assist?

Metadata

Metadata

Assignees

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