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 OverflowThat 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);
If you manage your node version using nvm, please check if node -v and nvm alias default returns the same node version.
Tools like jenkins, forever... which start nodejs application, will use the default version of node, which could be different than the version used by terminal console.
Do the check: nvm list
Fix the difference: nvm alias default "node -v"
I have downloaded an npm package which uses BigInt inside it and I get following error :
ReferenceError: BigInt is not defined
I am using node v 10.14.1
Is there any way to resolve this?
» npm install big-integer