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.

Plugin vue-cli-plugin-electron-builder does not have a generator to invoke

See original GitHub issue

Describe the bug I just created a fresh project with the @vue/cli and the installed the plugin by running vue add electron-builder but the next thing appears in my terminal:

�  Installing vue-cli-plugin-electron-builder...

yarn add v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
✔  Successfully installed plugin: vue-cli-plugin-electron-builder

Plugin vue-cli-plugin-electron-builder does not have a generator to invoke

After that, I can’t use the yarn electron:serve command.

Not a single file of my project has been modified by me or the plugin installation.

To Reproduce Steps to reproduce the behavior:

  1. Create a fresh new project by running: vue create app-name
  2. Run vue add electron-builder
  3. Run yarn electron:serve

Expected behavior Serve the project.

Environment (please complete the following information):

  • OS and version: Windows 7
  • node version: 12.0.4
  • yarn version (if used): 1.13.0
  • vue-cli-plugin-electron-builder version : 1.4.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nklaymancommented, Jan 11, 2020

@evanxzj you will need to run vue invoke electron-builder. Vue cli doesn’t work properly when you specify a version of a plugin.

1reaction
EvanXzjcommented, Jan 10, 2020

I’ve got the same output with electron-builder@2.0.0-beta.0, vue-cli-plugin-electron-builder@1.4.4 is ok

@nklayman please help!

Ouputs

 vue add electron-builder@2.0.0-beta.0

📦  Installing vue-cli-plugin-electron-builder@2.0.0-beta.0...

> ejs@3.0.1 postinstall /Users/xxxx/projects/xxx/my-wallet/node_modules/app-builder-lib/node_modules/ejs
> node ./postinstall.js

+ vue-cli-plugin-electron-builder@2.0.0-beta.0
added 202 packages from 121 contributors in 22.743s
✔  Successfully installed plugin: vue-cli-plugin-electron-builder@2.0.0-beta.0

Plugin vue-cli-plugin-electron-builder@2.0.0-beta.0 does not have a generator to invoke

Expected behavior Serve the project.

To Reproduce

vue create my-wallet
cd my-wallet
npm run serve  # Ctrl + c  Stop Server
vue add electron-builder@2.0.0-beta.0

Environment

OS:  MacOs 0.13.6
Node: v10.17.0
Npm: v6.12.0
vue-cli:  4.1.2
Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Issues | Vue CLI Plugin Electron Builder
Many issues can be solved by re-invoking the generator of Vue CLI Plugin Electron Builder. This allows it to add newer code to...
Read more >
i have issues while doing bundle using vue js with electron
Consider if you're going to use Electron 6 instead of Electron 5 for now, as it doesn't seems like they're gonna get the...
Read more >
@akumzy/vue-cli-plugin-electron-builder - npm
A Vue Cli 3 plugin for Electron with no required configuration. ... and invoke the generator of vue-cli-plugin-electron-builder by running:.
Read more >
vue-cli-plugin-electron-builder-extend - npm package | Snyk
Open a terminal in the directory of your app created with Vue-CLI 3. Then, install and invoke the generator of vue-cli-plugin-electron-builder by running:...
Read more >
Plugins and Presets - Vue CLI
It is not meant as a replacement for normal npm packages. ... since the command will invoke the plugin's file generator and potentially...
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