JavaScript
JavaScript mixed BigInt and Number in an unsupported way
JavaScript rejected an operation because BigInt and Number values were mixed in a context that requires explicit conversion.
JavaScript
JavaScript rejected an operation because BigInt and Number values were mixed in a context that requires explicit conversion.
Observed message
TypeError: can't convert BigInt to number
Why it happens
How to fix it
Official reference
MDN: TypeError: can't convert BigInt to numberRelated errors
Explore more