Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

run build error #1085

Open
Open
@cscan

Description

@cscan

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

Activity

igo9go

igo9go commented on May 26, 2021

@igo9go

the same error

gigouni

gigouni commented on Jun 2, 2021

@gigouni

Temp solution may be found in #1089 (comment)

happy-func

happy-func commented on Jun 11, 2021

@happy-func

image

its seems because this

you can remove this code from 37 to 41

image

then your project will be successful build

gigouni

gigouni commented on Jun 18, 2021

@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

happy-func

happy-func commented on Jun 21, 2021

@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

its Grammatical errors,need fix it anyway

andotorg

andotorg commented on Aug 15, 2021

@andotorg
alex-jaimes

alex-jaimes commented on Oct 14, 2021

@alex-jaimes

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cscan@gigouni@igo9go@alex-jaimes@andotorg

        Issue actions

          run build error · Issue #1085 · SimulatedGREG/electron-vue