JavaScript
JavaScript could not convert a non-integer value to BigInt
JavaScript rejected a conversion to BigInt because the source numeric value is not an integer.
JavaScript
JavaScript rejected a conversion to BigInt because the source numeric value is not an integer.
Observed message
RangeError: x can't be converted to BigInt because it isn't an integer
Why it happens
How to fix it
Official reference
MDN: RangeError: x can't be converted to BigInt because it isn't an integerRelated errors
Explore more