SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.46k stars 1.54k forks source link

Query about using ES2020 feature #1053

Closed Techevan closed 3 years ago

Techevan commented 3 years ago

Hi,

I'm trying to use BigInt, which is a feature in ES2020, in an electron-vue project. It's applied in main process (not renderer). However getting not defined error when declaring it.

What should I do if I would like to use this feature or is there any walk round.

Thanks.

Techevan commented 3 years ago

Turns out electron version is too old as 2.0.18. Corresponding chrome version is as "61.0.3163.100" and node version is as "8.9.3", leading to no support for ES2020. Issue fixed by upgrading electron version to 8.5.2