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.

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.
/Users/xxx/my-project/.electron-vue/build.js:45
  const tasks = new Listr (
            ^
Syntax Error: Identifier 'tasks' has already been declared
How can I reproduce this problem?
npm install -g vue-cli
vue init simulatedgreg/electron-vue my-project
cd my-project
npm install
npm run build
If visual, provide a screenshot.

#

Tell me about your development environment.
  • Node version: v14.15.4
  • NPM version: v6.14.10
  • vue-cli version: 2.9.6
  • Operating System: darwin

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

variable tasks declared twice in bulid.js

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
igo9gocommented, May 26, 2021

the same error

2reactions
happy-funccommented, Jun 11, 2021

image

its seems because this

you can remove this code from 37 to 41

image

then your project will be successful build

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors when running npm run build - node.js - Stack Overflow
Im trying to create my built folder for a react project, but I get this error when I run the command 'npm run...
Read more >
Execution of "npm run build" causes an error and can not be ...
I purchased Material Dashboard Pro React.(material-dashboard-pro-react@1.2.0) Execution of "npm run build" causes an error and can not be ...
Read more >
"npm build / npm run build" shows error : r/reactjs - Reddit
Thing I've tried: Tried running `npm run-script build`. Tried doing `npm cache clean --force`. Tried deleting node_modules folder then using ...
Read more >
A new Error: Command "npm run build" exited with 1 - Get Help
You need to follow the steps when you change the version of Node in a project, like npm install, probably some dependencies will...
Read more >
Error MSB3073 The command "npm run build" exited with ...
Recently I was trying to build a complex project which included also node js code and was deployable to IIS. The error I...
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