To enable the BigInt in React as of now you have to add this comment to your code:

/* global BigInt */

Please, refer to this.

Answer from mdmundo on Stack Overflow
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › BigInt
BigInt - JavaScript - MDN Web Docs
BigInt values represent integer values which are too high or too low to be represented by the number primitive.
Discussions

ReferenceError: Can't find variable: BigInt
I am trying to use the library which I used at web frontend development. But when I am trying to use that library, it says ReferenceError: Can't find variable: BigInt BigInt is a javascript built-in library, and I am not sure why React N... More on github.com
🌐 github.com
22
April 2, 2020
Bug: React 19 Uncaught TypeError: Do not know how to serialize a BigInt
React version: 19 Steps To Reproduce Set props with bigint import { useCallback, useState } from 'react'; interface ServiceItem { name: string; regionIds: bigint[]; } interface MachineItem ... More on github.com
🌐 github.com
4
August 13, 2025
Big Int error in React production build?
Uncaught TypeError: Cannot convert a BigInt value to a number More on web3auth.io
🌐 web3auth.io
1
0
September 8, 2022
Can't find variable: BigInt in expo (React native)
I am trying to do a simple call to internet identity (https://identity.ic0.app), but I get this error in the very first step: ReferenceError: Can’t find variable: BigInt Any ideas? Here i the code I have. ultimately my question is, how can I use internet identity in a react native app? More on forum.dfinity.org
🌐 forum.dfinity.org
1
0
July 5, 2021
🌐
npm
npmjs.com › package › big-integer
big-integer - npm
November 21, 2023 - If you provide a second parameter, then it will parse number as a number in base base. Note that base can be any bigInt (even negative or zero). The letters "a-z" and "A-Z" will be interpreted as the numbers 10 to 35. Higher digits can be specified in angle brackets (< and >).
      » npm install big-integer
    
Published   Nov 21, 2023
Version   1.6.52
Author   Peter Olson
🌐
GitHub
github.com › facebook › react-native › issues › 28492
ReferenceError: Can't find variable: BigInt · Issue #28492 · facebook/react-native
April 2, 2020 - BigInt is a javascript built-in library, and I am not sure why React Native does not support, or React native does not support all new features of ES2020?
Author   0xhiros
🌐
GitHub
github.com › DefinitelyTyped › DefinitelyTyped › discussions › 66749
[@types/react] React.Key `bigint` issues · DefinitelyTyped/DefinitelyTyped · Discussion #66749
The addition of bigint to the React.Key type now complicates the usage of Key in different scenarios. For example, we are using a field of React.Key type to index an object, but can no longer do th...
Author   DefinitelyTyped
🌐
GitHub
github.com › facebook › react › issues › 35004
Bug: React 19 Uncaught TypeError: Do not know how to serialize a BigInt · Issue #35004 · facebook/react
August 13, 2025 - React version: 19 Steps To Reproduce Set props with bigint import { useCallback, useState } from 'react'; interface ServiceItem { name: string; regionIds: bigint[]; } interface MachineItem { name: string; services: ServiceItem[]; } inter...
Author   nuintun
🌐
Web3Auth
web3auth.io › faqs
Big Int error in React production build? - FAQs - Web3Auth Community
September 8, 2022 - Uncaught TypeError: Cannot convert a BigInt value to a number
Find elsewhere
🌐
StackBlitz
stackblitz.com › edit › react-my-bigint
React My Bigint - StackBlitz
A React project based on react, react-dom and react-router-dom
🌐
GitHub
github.com › juanelas › bigint-crypto-utils
GitHub - juanelas/bigint-crypto-utils: Utils for working with cryptography using native JS implementation of BigInt. It includes arbitrary precision modular arithmetics, cryptographically secure random numbers and strong probable prime generation/testing. It works with Node.js, and native JS, including React and Angular
Utils for working with cryptography using native JS implementation of BigInt. It includes arbitrary precision modular arithmetics, cryptographically secure random numbers and strong probable prime generation/testing.
Starred by 36 users
Forked by 3 users
Languages   JavaScript 55.7% | TypeScript 44.3% | JavaScript 55.7% | TypeScript 44.3%
🌐
Internet Computer Developer Forum
forum.dfinity.org › developers
Can't find variable: BigInt in expo (React native) - Developers - Internet Computer Developer Forum
July 5, 2021 - I am trying to do a simple call to internet identity (https://identity.ic0.app), but I get this error in the very first step: ReferenceError: Can’t find variable: BigInt Any ideas? Here i the code I have. ultimately my question is, how can I use internet identity in a react native app?
🌐
GitHub
github.com › vercel › next.js › discussions › 64753
Type 'bigint' is not assignable to ReactNode - help · vercel/next.js · Discussion #64753
This seems to be caused by @types/react 13.3.4 or 13.3.5. I think they added a secret "experimental" key that is a bigint and it rippled in bad ways.
Author   vercel
🌐
GitHub
github.com › vercel › next.js › blob › canary › test › integration › bigint › test › index.test.ts
next.js/test/integration/bigint/test/index.test.ts at canary · vercel/next.js
it('should return the BigInt result text', async () => { const resText = await fetchViaHTTP(appPort, '/api/bigint', null, { method: 'GET', }).then((res) => res.ok && res.text()) expect(resText).toEqual('3') }) } · describe('bigint API route support', () => { ;(process.env.TURBOPACK_BUILD ?
Author   vercel
🌐
JavaScript.info
javascript.info › tutorial › the javascript language › miscellaneous
BigInt
September 21, 2020 - The conversion operations are always silent, never give errors, but if the bigint is too huge and won’t fit the number type, then extra bits will be cut off, so we should be careful doing such conversion.
🌐
GitHub
github.com › facebook › react › issues › 20492
Bug: BigInt does not get toString()'d when rendered · Issue #20492 · facebook/react
December 21, 2020 - It looks like 'bigint' just needs adding here: https://github.com/facebook/react/blob/master/packages/react-dom/src/client/ToStringValue.js#L26.
Author   andyboyne
🌐
GitHub
github.com › hirosystems › stacks.js › issues › 1119
App with react-script throws TypeError: can't convert BigInt to number · Issue #1119 · stx-labs/stacks.js
October 18, 2021 - Describe the bug When running my app "pool registry" (https://github.com/friedger/stacks-pool-registry) with the 2.0.1 in production, I get the error: TypeError: can't convert BigInt to number. The app is build using react-script What ve...
Author   friedger
🌐
LogRocket
blog.logrocket.com › home › how to use javascript’s bigint
How to use JavaScript's BigInt - LogRocket Blog
June 4, 2024 - Use React's useEffect to optimize your application's performance ... Advisory boards aren’t just for executives. Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag · BigInt also improves speed in JavaScript applications.
🌐
GitHub
github.com › facebook › create-react-app › issues › 13310
'BigInt' is not defined - facebook/create-react-app
July 28, 2023 - import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; console.log(BigInt(42)); const root = ReactDOM.createRoot(document.getElementById('root')); root.render( <React.StrictMode> <App /> </React.StrictMode> ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint.
Author   scibuff
🌐
GitHub
github.com › eslint › eslint › issues › 11524
"'BigInt' is not defined" for build-in BigInt · Issue #11524 · eslint/eslint
January 22, 2019 - let totalPrice = BigInt(0) totalPrice += BigInt(123) f (BigInt(totalPrice) === BigInt(0)) console.log('PAID')
Author   terrynguyen255