electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

run build error

Open cscan opened this issue 3 years ago • 7 comments

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

cscan avatar May 21 '21 03:05 cscan

the same error

igo9go avatar May 26 '21 02:05 igo9go

Temp solution may be found in https://github.com/SimulatedGREG/electron-vue/issues/1089#issue-909045706

gigouni avatar Jun 02 '21 13:06 gigouni

image

its seems because this

you can remove this code from 37 to 41

image

then your project will be successful build

happy-func avatar Jun 11 '21 06:06 happy-func

I change from node 12 to node 14.17.1 and now it works for the same generated electron-vue project, without removing the tasks @happy-func

gigouni avatar Jun 18 '21 10:06 gigouni

I change from node 12 to node 14.17.1 and now it works for the same generated electron-vue project, without removing the tasks @happy-func

its Grammatical errors,need fix it anyway

happy-func avatar Jun 21 '21 07:06 happy-func

https://github.com/andotorg/electron-vue-app-template

这种方式才是最好用的方式

andotorg avatar Aug 15 '21 10:08 andotorg

it works by commenting the code as @happy-func said Node v14.15.4

alex-jaimes avatar Oct 14 '21 17:10 alex-jaimes