Skip to content
JS
JavaScript error

TypeError

The JavaScript exception "x can't be converted to BigInt" occurs when attempting to convert a Symbol, null, or undefined value to a BigInt, or if an operation expecting a BigInt parameter receives a number.

Reference entryJavaScriptFetched
TypeError: Cannot convert null to a BigInt (V8-based)
As listed by MDN Web Docs
TypeError: can't convert null to BigInt (Firefox)
As listed by MDN Web Docs
TypeError: Invalid argument type in ToBigInt operation (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.