question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'BigInt' of undefined

See original GitHub issue

in App.ts

import JSBI from 'jsbi';
const TokenCount_Bignum = JSBI.BigInt(2);

did i missing something? jsbi ver 3.1.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
tqk2811commented, Jul 28, 2021

I found solution long time ago

import * as JSBI from 'jsbi/dist/jsbi-umd.js'
1reaction
xyunshcommented, Jul 29, 2021
import * as JSBI from 'jsbi';
// @ts-ignore
const TokenCount_Bignum = JSBI.BigInt(2);

console.log(TokenCount_Bignum);

This will also work, but the ts check needs to be ignored

Add a line to the end of jsbi.d.ts

export = JSBI;

can be passed by ts checking

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'bigint' of undefined Use --force ... - GitHub
You can add grunt --stack or grunt --verbose to get more info on where the error originates. I dont think Grunt uses a...
Read more >
Sails grunt watch - Warning: Cannot read property 'bigint' of ...
This appears to be fixed in grunt-sync 0.8.0. I suggest updating the grunt-sync package.
Read more >
TypeError: Cannot read property 'BigInt' of undefined | JavaScript ...
TypeError: Cannot read property 'BigInt' of undefined ... JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.
Read more >
TypeError: can't convert x to BigInt - JavaScript - MDN Web Docs
The JavaScript exception "x can't be converted to BigInt" occurs when attempting to convert a Symbol , null , or undefined value to...
Read more >
Sails grunt watch - Warning: Cannot read property 'bigint' of ...
[Solved]-Sails grunt watch - Warning: Cannot read property 'bigint' of undefined Use --force to continue-grunt.js · score:0. Downgrade from node 10.5. · score:1....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found