question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build issue: SyntaxError: Identifier 'tasks' has already been declared

See original GitHub issue

Found 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?
  1. Create new project using this command: vue init simulatedgreg/electron-vue my-project
  2. run: npm run build
If visual, provide a screenshot.

image

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:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

6reactions
pheloggescommented, May 11, 2021

i got this issue solved by commenting tasks and Multispinner instance, then upgrading electron-builder to the latest version.

1reaction
doc-hancommented, May 3, 2021

This is an actual error in the code. Tasks has been defined multiple times.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found