Skip to content
JS
JavaScript error

TypeError

The JavaScript exception "can't convert BigInt to number" occurs when an arithmetic operation involves a mix of BigInt and Number values.

Reference entryJavaScriptFetched
TypeError: Cannot convert a BigInt value to a number (V8-based)
As listed by MDN Web Docs
TypeError: Cannot mix BigInt and other types, use explicit conversions (V8-based)
As listed by MDN Web Docs
TypeError: BigInts have no unsigned right shift, use >> instead (V8-based)
As listed by MDN Web Docs
TypeError: can't convert BigInt to number (Firefox)
As listed by MDN Web Docs
TypeError: Conversion from 'BigInt' to 'number' is not allowed. (Safari)
As listed by MDN Web Docs
TypeError: Invalid mix of BigInt and other type in addition/multiplication/…. (Safari)
As listed by MDN Web Docs
TypeError: BigInt does not support >>> operator (Safari)
As listed by MDN Web Docs
Category
TypeError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.273Z.