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
🌐
GitHub
github.com › eslint › eslint › issues › 11524
"'BigInt' is not defined" for build-in BigInt · Issue #11524 · eslint/eslint
January 24, 2019 - Please include the actual source code causing the issue, as well as the command that you used to run ESLint. let totalPrice = BigInt(0) totalPrice += BigInt(123) f (BigInt(totalPrice) === BigInt(0)) console.log('PAID') ... What did you expect to happen? BigInt should be recognized as build-in object and there should not be "no-undef" error.
Author   terrynguyen255
🌐
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 - Activating the es2020: true setting in your ESLint’s env configuration tells the parser to recognize ES2020 globals. And recognizing ES2020 globals includes the BigInt class.
Discussions

ReferenceError: BigInt is not defined
It's your environment. If this error is from vscode it maybe running differently than your system/terminal-session. If you are using n or nvm try removing them or try docker More on reddit.com
🌐 r/node
3
3
July 19, 2020
'BigInt' is not defined
Set up a modern web app by running one command. Contribute to facebook/create-react-app development by creating an account on GitHub. More on github.com
🌐 github.com
4
July 28, 2023
'ReferenceError: BigInt is not defined' due to the BigInt in v5.35.1 or newer version
Bug report What is the current behavior? After we upgrade the version of webpack to be v5.35.1 or newer, we will get below errors. If the version is older than v5.35.0, it would be OK. In fact, I a... More on github.com
🌐 github.com
6
May 20, 2021
'BigInt' is not defined.
There was an error while loading. Please reload this page More on github.com
🌐 github.com
1
October 7, 2019
🌐
GitHub
github.com › facebook › create-react-app › issues › 13310
'BigInt' is not defined - facebook/create-react-app
July 28, 2023 - 'BigInt' is not defined#13310 · Copy link · Labels · issue: bug reportneeds triage · scibuff · opened · on Jul 28, 2023 · Issue body actions · The JavaScript/ES2020 native BigInt is not available in the latest create-react-app on Node 20, but · node -e 'console.log(BigInt(42))' correctly outputs 42n ·
Author   scibuff
🌐
GitHub
github.com › webpack › webpack › issues › 13419
'ReferenceError: BigInt is not defined' due to the BigInt in v5.35.1 or newer version · Issue #13419 · webpack/webpack
May 20, 2021 - After we upgrade the version of webpack to be v5.35.1 or newer, we will get below errors. If the version is older than v5.35.0, it would be OK. In fact, I already find the cause in the commit history. This issue is caused by this PR #13213 with this commit acfea9d by @sokra . In this commit, it's using BigInt which brings this issue.
Published   May 20, 2021
Author   lukewang2018
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Errors › Invalid_BigInt_syntax
SyntaxError: invalid BigInt syntax - JavaScript - MDN Web Docs
July 8, 2025 - The JavaScript exception "invalid BigInt syntax" occurs when a string value is being coerced to a BigInt but it failed to be parsed as an integer.
Find elsewhere
🌐
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
🌐
ESET Security Forum
forum.eset.com › eset business user products › eset protect on-prem (remote management)
BigInt is not defined. Error in Webconsole - ESET PROTECT On-prem (Remote Management) - ESET Security Forum
October 30, 2023 - Hi, I'm moving from a Windows based PROTECT server to a Linux one (as the Windows system is a little overwhelmed). While I've followed the instructions as stated in https://help.eset.com/protect_install/10.1/en-US/prerequisites_server_linux.html?component_installation_server_linux.html, there wer...
🌐
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.
🌐
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.
🌐
GitHub
github.com › webpack › webpack › issues › 14565
BigInt is not defined · Issue #14565 · webpack/webpack
June 18, 2021 - version: "webpack": "^5.59.1", "webpack-cli": "^4.9.1" node: node -v v16.11.1, v14.18.1, v8.6.0 bug: webpack/lib/ChunkGraph.js:43; const ZERO_BIG_INT = BigIn...
Author   zhangzs000
🌐
GitHub
github.com › electron › asar › issues › 217
ReferenceError: BigInt is not defined · Issue #217 · electron/asar
May 10, 2021 - But i have been getting this error : ReferenceError: BigInt is not defined at new Filesystem (C:\Users\Path\to\project\node_modules\asar\lib\filesystem.js:17:5) at Object.module.exports.readFilesystemSync (C:\Users\Path\to\project\node_modules\asar\lib\disk.js:85:24) at Object.module.expor...
Published   May 11, 2021
Author   entip
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › BigInt › BigInt
BigInt() constructor - JavaScript - MDN Web Docs
July 10, 2025 - BigInt() is the only case where a number can be converted to a BigInt without throwing, because it's very explicit.
🌐
Stack Overflow
stackoverflow.com › questions › 15725661 › javascript-does-not-find-object-biginteger
JavaScript does not find object BigInteger - Stack Overflow
March 31, 2013 - As other people have pointed out, BigInteger is not built-in to JavaScript. I searched for a Big­Int­eger library in JavaScript and found this.
🌐
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.
🌐
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 › Errors › Cant_convert_x_to_BigInt
TypeError: can't convert x to BigInt - JavaScript - MDN - Mozilla
July 8, 2025 - 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.