Build issue: SyntaxError: Identifier 'tasks' has already been declared
See original GitHub issueFound an issue or bug with electron-vue? Tell me all about it!
Describe the issue / bug.
Thank you for creating this package.
I’m facing this issue while building:
const tasks = new Listr(
^
SyntaxError: Identifier 'tasks' has already been declared
at wrapSafe (internal/modules/cjs/loader.js:931:16)
at Module._compile (internal/modules/cjs/loader.js:979:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
on .electron-vue\build.js:45
How can I reproduce this problem?
- Create new project using this command:
vue init simulatedgreg/electron-vue my-project - run: npm run build
If visual, provide a screenshot.

Tell me about your development environment.
- Node version: v12.19.0
- NPM version: 6.14.8
- vue-cli version: 4.5.8
- Operating System: Windows
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
javascript- Uncaught SyntaxError: Identifier * has already been ...
I am surprised to see this output as I am expecting 10 ..because two variables declared inside the if block refer to the...
Read more >Identifier "x" has already been declared" - Ep 11 - YouTube
JS Casts 11 - How to fix "Uncaught SyntaxError : Identifier "x" has already been declared " in JavaScript.
Read more >electron-vue 执行npm run build无法打包提示Identifier 'tasks ...
1、electron-vue npm run build提示Identifier 'tasks' has already been declared const tasks = new Listr( ^ SyntaxError: Identifier 'tasks' has ...
Read more >electron-vue Identifier 'tasks' has already been declared
electron-vue打包时会报错Identifier 'tasks' has already been declared 打开/.electron-vue/build.js 找到tasks修改一下名称,比如改为tasksed,重新打包就可以了。
Read more >electron-vue 执行npm run build无法打包提示Identifier 'tasks ...
1、electron-vue npm run build提示Identifier 'tasks' has already been declared. const tasks = new Listr( ^ SyntaxError: Identifier 'tasks' has already been ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

i got this issue solved by commenting tasks and Multispinner instance, then upgrading
electron-builderto the latest version.This is an actual error in the code. Tasks has been defined multiple times.