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 28, 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”
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.
🌐
GitHub
github.com › facebook › create-react-app › issues › 13310
'BigInt' is not defined · Issue #13310 · facebook/create-react-app
June 9, 2023 - Describe the bug 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 but npm start or yarn st...
Author   scibuff
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Errors › Invalid_BigInt_syntax
SyntaxError: invalid BigInt syntax - JavaScript | MDN
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.
🌐
GitHub
github.com › standard › standard › issues › 1436
'BigInt' is not defined. · Issue #1436 · standard/standard
February 11, 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...
Find elsewhere
🌐
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
April 1, 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
🌐
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.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › BigInt
BigInt - JavaScript | MDN
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.
🌐
Stack Overflow
stackoverflow.com › questions › 15725661 › javascript-does-not-find-object-biginteger
JavaScript does not find object BigInteger - Stack Overflow
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.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › BigInt › BigInt
BigInt() constructor - JavaScript | MDN
BigInt() is the only case where a number can be converted to a BigInt without throwing, because it's very explicit.
🌐
GitHub
github.com › webpack › webpack › issues › 14565
BigInt is not defined · Issue #14565 · webpack/webpack
June 22, 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
🌐
Stack Overflow
stackoverflow.com › questions › 68306200 › bigint-is-not-defined-in-react
"BigInt is not defined" in React
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.
🌐
GitHub
github.com › electron › asar › issues › 217
ReferenceError: BigInt is not defined · Issue #217 · electron/asar
October 16, 2020 - 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
🌐
npm
npmjs.com › package › big-integer
big-integer - npm
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
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.
🌐
Forest Admin
community.forestadmin.com › help me!
Issue creating backend application using local DB - ReferenceError: BigInt is not defined - Help me! - Forest Admin Developers Community
December 19, 2020 - I’m trying to install ForestAdmin ... Actual behavior When I run the Lumber generate command I’m getting the following error: ReferenceError: BigInt is not defined Failure Logs /usr/local/lib/nod......