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.

npm run build error and solutions

See original GitHub issue

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.

# When I run npm run build the system has an error
const tasks = new Listr( ^

SyntaxError: Identifier ‘tasks’ has already been declared; then I changed the variable name ,but it has another error: const m = new Multispinner(taskss, { ^

ReferenceError: Multispinner is not defined

then i run npm install --save multispinner and reuqire multispinner

then i success,

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:14

github_iconTop GitHub Comments

3reactions
himalay34commented, Aug 2, 2021

no need to install multispinner, just comment out the following code in .electron-vue/build.js

 /*const task = ['main', 'renderer']
 const m = new Multispinner(task, {
      preText: 'building',
      postText: 'process'
 })*/
0reactions
gigounicommented, Jun 18, 2021

No problem @monhly, it works now I just change my node+npm versions

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 >
Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
Read more >
How can i fix npm run build error more efficiently - Support
i ran into error TS2565: Property 'defaultProps' is used before being assigned while “npm run build”. OS: WSL2 Ubuntu 18.04 LTS.
Read more >
Error when running npm run build : r/react - Reddit
Error when running npm run build · Delete package-lock.json (not package.json!) and/or yarn. · Delete node_modules in your project folder. · Remove ...
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