-
-
Notifications
You must be signed in to change notification settings - Fork 276
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 isn't launching on serve:electron #24
Comments
Could everyone who has this issue please try these steps:
Then, please reply with the following:
Thanks a lot guys, I really appreciate the help and hope we can resolve this soon 😄 . |
macOS High Sierra v10.13.5
Tried with npm 5.6.0, npm 6.1.0 and yarn 1.7.0.
node v10.4.1
3.0.0-rc.2
1.0.0-alpha.5
|
This issue happened to me when the project was compiling with warnings. The issue disappeared when I resolved the warnings in my code. |
Hi! I've upgrade to latest alpha (6) and this was the result: Did it work?: No Thanks!! |
To those of you with the issue, I ask for more help. Please clone this repo. Then, do the following:
Thanks you all, hoping to get this fixed so you can try this out! |
Hi!
Every time with the same result. Btw, app is blank in http://localhost:8080 and an error is shown in the console: Regards! |
Testing on Windows 10. With the repo you provide:
I also found that |
@algil based on the feedback you gave, i created a new branch in this repo (test-launch-1). Go ahead and clone this repo, then do the following:
Thanks for your help! Edit: also, did the |
@nklayman All three methods launched Electron, but app launched with method 2 crashed.
And this is from the terminal after I kill the script:
Testing on macOS High Sierra 10.13.5 |
Hi @nklayman! You're welcome. Sorry for my delay. I just tried it and this are the results: - launch 1: WORKS Regards! |
Thanks for all of your help! alpha.9 uses the new launch method 🎉! Don't forget to unlink the test-launch-1 package. |
Great! It works with alpha.9! Thanks! |
alpha.9 launches the electron app fine in In a real Electron project that uses TypeScript I get this error after updating to alpha.9, re-invoking the plugin (
|
Try running |
However, installing it directly allowed the launch to get a lot further before failing:
I think the problem is that when I try launching it, it's not using the webpack.config that vue-cli generates. For example, running test: /\.(png|jpe?g|gif|webp)(\?.*)?$/,
use: [
{
loader: 'url-loader',
options: {
limit: 4096,
name: 'img/[name].[hash:8].[ext]'
}
}
] |
Make sure you use a relative path to your assets directory as described in the Vue cli docs. Assets in the public directory require extra config as of now (update coming soonish) but src/assets should work as-is. Im camping over the weekend w/out cell service so I won't be able to reply after this, sorry. |
Check the README as I added instructions for handling static assets. Make sure you are using 1.0.0-alpha.10 as it has the new features. |
This issue is also appearing on latest update "1.4.0" with electron version "6.0.4". |
it's not run on linux now when i run npm run electron:serve |
This command can solve this problem:
|
@jerryshell sadly this doesn't fix issue on Windows. I'm now using electron 5.x.x until it has been fixed 👌 |
@chinafreak, with the answer @jerryshell gave, I was thinking maybe it is related to this issue #1972 (I'm not sure) You could try : |
@chinafreak your issue is probably the same as #378. |
@Vallevard again, I'm not using linux, so therefore I can't use this command on Windows. 😄 |
On my Windows 10 Workstation, both electron:serve and electron:build work flawlessly. On my Windows 10 Laptop electron:build works, but electron:serve gets stuck. The laptop version is a complete fresh install of my project with yarn. Really weird. |
Exact same thing happening to me. Got it working on my other machine, cloned the repo, ran yarn and now same error. Pretty much sucks because this is my first outing with any of this stuff. |
Didn't find this thread again, but what worked for me was updating Node.js to the latest version. |
What "worked" for me was just repeating the steps of installation and copying the files over to the directory, performing a merge and then a pull that resulted in "Already up to date". Time to move on to actually doing something. |
Yeah, I couldn't get electron to launch at all until I downgraded down to 5.0.13. |
I am using electron 6.0.0, I run |
Hello everybody! I had the same problem with a vue app. My OS is GNU/Linux Debian 10 (x64). I solved it this way: After this, everything works normally |
@linuxArg Do you really want to open up your kernel to a bunch of security vulnerabilities just to be able to run an electron app though? |
@nklayman I'm having launch issues in both Windows 10 and Windows 8.1 with the 2.0.0-beta.5 release. I created a ticket #693. Basically - Launching the dev window works fine in both Mac and Linux. |
Make sure you are running |
for anyone stuck on Launching Electron or getting this error when running yarn |
This worked for me! |
This works, I can confirm. |
Some people have reported that serve:electron gets stuck on Launching Electron. This issue is created to centralize these reports.
The text was updated successfully, but these errors were encountered: