Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron 5 & 6 errors #547

Closed
ronssij opened this issue Nov 12, 2019 · 6 comments
Closed

Electron 5 & 6 errors #547

ronssij opened this issue Nov 12, 2019 · 6 comments

Comments

@ronssij
Copy link

@ronssij ronssij commented Nov 12, 2019

Electron 5 has this error when running npm run electron:serve
Electron 6 not launching Electron window but no errors

To Reproduce
Steps to reproduce the behavior:

  • vue create my-app
  • vue add electron-builder (then choose between electron 5 and 6) which I end choosing v.4

Expected behavior
Electron 5 & 6: It will run an electron window with no errors.

Screenshots
Electron 5: http://prntscr.com/pvnfqf
Electron 6: http://prntscr.com/pvnhy1 - This does not open an electron window

Environment (please complete the following information):

  • OS and version: Windows 10 Pro
  • node version: v12.8.1
  • npm version: 6.9.2
  • yarn version (if used): N/A
  • vue-cli-plugin-electron-builder version :
  • electron version: both 5 & 6
  • other vue plugins used: None
  • custom config for vcp-electron-builder: None
  • (if possible) link to your repo:
@No3x

This comment has been minimized.

Copy link

@No3x No3x commented Nov 12, 2019

I don't have much expertise with this tools but were surprised you have such an issue. I just set up a project with a similar env but do not have this errors.

  • OS and version: Windows 10 Pro
  • node version: v11.10.1
  • npm version: 6.8.0
  • yarn version (if used): N/A
  • vue-cli-plugin-electron-builder version: 1.4.1
  • electron version: both 6
  • other vue plugins used: None
  • custom config for vcp-electron-builder: None

I guess the error is already included after vue create my-app. Does npm run serve work after this step?
Make sure to use vue-cli v3.

npm uninstall -g @vue/cli
npm i -g @vue/cli@^3
@nklayman

This comment has been minimized.

Copy link
Owner

@nklayman nklayman commented Nov 12, 2019

A common issue is electron fails to download correctly. Try removing node_modules and reinstalling. The registerdtandardschemes issue is caused when switching between electron versions with a breaking change. Try reinvoking the generator with vue invoke electron-builder.

@ronssij

This comment has been minimized.

Copy link
Author

@ronssij ronssij commented Nov 13, 2019

@No3x on that issue npm run serve does not work.
I tried using Electron v 4.x instead and it seems to be working perfectly fine on my end.
I will try all your suggestion today, Hope I can get the latest version of the electron.
Thanks

@ronssij

This comment has been minimized.

Copy link
Author

@ronssij ronssij commented Nov 13, 2019

@nklayman

I found what causes the electron builder to not work.
what I did was create a two project.

Project One

  • vue create project-one
  • vue add electron-builder
  • npm run electron:serve - This is working as expected with electron v6.x
  • vue add vuetify
  • npm run electron:serve - Electron is not working anymore

Project Two

  • vue create project-two
  • vue add vuetify
  • npm run serve - This is working as expected on the browser
  • vue add electron-builder
  • npm run electron:serve - _Electron is not working here

npm run serve are working on both project.

@nklayman

This comment has been minimized.

Copy link
Owner

@nklayman nklayman commented Nov 17, 2019

My guess is that your electron cache is corrupted. Try removing node_modules and %LOCALAPPDATA%/electron/Cache and reinstalling deps.

@ronssij

This comment has been minimized.

Copy link
Author

@ronssij ronssij commented Nov 18, 2019

It works now. I deleted the electron cache folder as what you have said.
and created a new project folder.

@ronssij ronssij closed this Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.