That error is apparently coming from this line of code in the asar package's lib/filesystem.js:

this.offset = BigInt(0)

And, the error apparently means that you have a version of nodejs that electron is using when it builds your app that does not support BigInt which was added in v10.4.

So, though you think you are using v14.15.1, that is apparently not what electron is building your app with. You need to upgrade the version of nodejs you're using in this electron project.

You can confirm what version of nodejs is being used by adding this to some of your own code in the project:

console.log(process.version);
Answer from jfriend00 on Stack Overflow
🌐
Stack Overflow
stackoverflow.com › questions › 68306200 › bigint-is-not-defined-in-react
"BigInt is not defined" in React - javascript
July 8, 2021 - I am trying to use a BigInt value in React, and it is returning an error that BigInt is not defined. We are using node version 14.14.0, and BigInt is supposed to be supported as of 10.4. It's not a browser issue because 1) the latest firefox supports BigInt and 2) the app is failing to compile, so the browser isn't loading the page.
Discussions

"'BigInt' is not defined" for build-in BigInt
What actually happened? Please include the actual, raw output from ESLint. "'BigInt' is not defined." error is thrown. 👍React with 👍4leegee, Kostanos, vitaly-t and bojkovak More on github.com
🌐 github.com
11
January 20, 2019
'BigInt' is not defined.
There was an error while loading. Please reload this page More on github.com
🌐 github.com
1
October 7, 2019
node.js - ReferenceError: BigInt is not defined Asar Electron Nodejs - Stack Overflow
This error sounds like you don't ... = BigInt(0). So, I'd suggest you recheck what version of nodejs your builds of electron are actually using. ... Exactly, the thing about it, is that Electron runs a different nodejs version, so i had to update my electron package to get the newest nodejs version and it worked ! ... And, the error apparently means that you have a version of nodejs that electron is using when it builds your app that does not support BigInt ... More on stackoverflow.com
🌐 stackoverflow.com
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 6, 2022
🌐
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. Learn more: https://bit.ly/CRA-vitals reportWebVitals(); ... Failed to compile. [eslint] src/index.js Line 7:13: 'BigInt' is not defined no-undef Search for the keywords to learn more about each error.
Author   scibuff
🌐
GitHub
github.com › eslint › eslint › issues › 11524
"'BigInt' is not defined" for build-in BigInt · Issue #11524 · eslint/eslint
January 20, 2019 - What did you expect to happen? BigInt should be recognized as build-in object and there should not be "no-undef" error.
Author   terrynguyen255
🌐
GitHub
github.com › standard › standard › issues › 1436
'BigInt' is not defined. · Issue #1436 · standard/standard
October 7, 2019 - 'BigInt' is not defined. This was mentioned as fixed in 14.1.0 here: #1378 (comment) What did you expect to happen? No error · Are you willing to submit a pull request to fix this bug? Yes · 👍React with 👍12faridnsh, codenirvana, metinavc1, normanzb, CherryDT and 7 more ·
Author   LinusU
🌐
Futurestud.io
futurestud.io › tutorials › eslint-how-to-fix-bigint-is-not-defined
ESLint — How to Fix “BigInt is not defined” - Future Studio
September 10, 2020 - JavaScript supports the BigInt data type representing whole numbers larger than the Integer rage (2^53 - 1).
Find elsewhere
🌐
npm
npmjs.com › package › big-integer
big-integer - npm
November 21, 2023 - Note that Javascript numbers larger than 9007199254740992 and smaller than -9007199254740992 are not precisely represented numbers and will not produce exact results. If you are dealing with numbers outside that range, it is better to pass in strings. Note that bigInt operations return bigInts, which allows you to chain methods, for example:
      » npm install big-integer
    
Published   Nov 21, 2023
Version   1.6.52
Author   Peter Olson
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › BigInt
BigInt - JavaScript - MDN Web Docs
BigInts are returned as-is. ... Strings are converted by parsing them as if they contain an integer literal. Any parsing failure results in a SyntaxError. The syntax is a subset of string numeric literals, where decimal points or exponent indicators are not allowed.
🌐
Web3Auth
web3auth.io › faqs
Big Int error in React production build? - FAQs - Web3Auth Community
September 6, 2022 - Uncaught TypeError: Cannot convert a BigInt value to a number
🌐
GitHub
github.com › JaneaSystems › nodejs-mobile › issues › 250
[iOS] BigInt is not defined · Issue #250 · JaneaSystems/nodejs-mobile
March 14, 2020 - Project: nodejs-mobile-react-native Version: 0.5.0 Mobile device: iPhone xR Simulator; iOS 12.4 Mobile OS and version: iOS 12.4 Development Node.js: 12.14.1 Development platform: Darwin psg-mbp32.local 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec 1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64 ... ReferenceError: 'BigInt' is not defined at Anonymous function (/Users/<myuser>/Library/Developer/CoreSimulator/Devices/FE11A260-BC1A-421F-921D-066D3625B0A5/data/Containers/Bundle/Application/7B255216-301B-49D6-A086-1EE19D0DDFE1/<appname>.app/nodejs-project/node_modules/bigint-crypto
🌐
Jianshu
jianshu.com › p › f981affbe582
Fixing “'BigInt' is not defined” - kami1983
January 13, 2022 - 参考 如果 node 版本在10以上,那么出现这个问题的原因很可能是 .eslintrc.json 的配置有问题或者没有配置 参考:https://futurestud.io...
🌐
GitHub
github.com › panva › jose › discussions › 40
ReferenceError: BigInt is not defined · panva/jose · Discussion #40
All reactions · 0 replies · Comment options · There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. Quote reply · - Then this just isn't possible and there's an issue with how you run your program, try placing console.log(process.versions) in your process that throws BigInt is not defined ·
Author   panva
🌐
Stack Overflow
stackoverflow.com › questions › 15725661 › javascript-does-not-find-object-biginteger
JavaScript does not find object BigInteger - Stack Overflow
March 31, 2013 - And it sounds like you did not include the library. https://github.com/silentmatt/javascript-biginteger/blob/master/biginteger.js ... Thank you very much. However the error is about the BigInteger..
🌐
Internet Computer Developer Forum
forum.dfinity.org › developers
Can't find variable: BigInt in expo (React native) - Developers - Internet Computer Developer Forum
June 3, 2021 - Hi I am new to Dfinity and building an application in expo (React native)+typescript. 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?
🌐
The Code Barbarian
thecodebarbarian.com › an-overview-of-bigint-in-node-js.html
An Overview of BigInt in Node.js | www.thecodebarbarian.com
September 11, 2018 - There are several limitations to using BigInts. Because BigInts are a new primitive type, many existing libraries and frameworks do not support them. Currently, you can't even JSON.stringify() an object that contains a BigInt.
🌐
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. DefinitelyTyped/DefinitelyTyped@44c0d65
Author   vercel
🌐
PTC Community
community.ptc.com › t5 › ThingWorx-Developers › BigInt-in-javascript › td-p › 914789
BigInt in javascript - PTC Community
November 28, 2023 - So for a bigint we use -9223372036854775805 to indicate that we received a number that is not in the bigInt range.