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
no suitable image found on macOS #1767
Comments
@phhoef Can you try building with |
@HipsterBrown thanks for your answer. Then I packaged the app and tried to open it.
Actually, I saw this error also a few times when using |
Thanks for checking. It appears to be an issue with mixing webpack and the electron bundling. Do you know if webpack is trying to bundling serialport as well? As far as I know, webpack cannot bundling native dependencies, so that may be causing the issue. |
Honestly, I have no idea. I am really a novice with Node.js/Electron and especially with all the packaging stuff. I think all
Is there a difference between running the app in dev mode or packaging for production? |
Hmm ok. Do you know if this works for electron 3.0.0? We don't have prebuilt binaries for electron 4.0.0 since it was recently released, but the 3.0.0 prebuilt ones may be easier for packaging. |
@phhoef Have you tried the |
I haven't tested packaging the app with electron 3.0.0. I am getting confused by all the commands. I found out, that when issuing the following commands one by one manually, the app will start.
The Hmm, that is driving me nuts. |
Do you have an example repo I could look at? I will need to see the |
I also think that the problem is not directly related to serialport but with the packaging. I have created a small app to reproduce the issue. |
@phhoef Ok, thanks for creating a test repo. I'm closing this issue for now but will look into your repo to see if I can help at all. |
i have a same issue { "keywords": [ |
@shuihuasheng Did you see the solution in the linked electron-builder issue -> electron-userland/electron-builder#3590 (comment) |
Summary of Problem
When creating an installer with
electron-builder
an error occurs when launching the application.The behaviour is quite odd. Running the app for development (
electron .
&webpack --mode development
) everything is working fine. Then, I package the app withelectron-builder
. The packaged app won't start and closes immediately. When I then run the app for development again, the same error occurs. The only way to get the app working in dev again is to delete the node_modules folder and runyarn install
again.With
yarn install
the scriptelectron-rebuild
is also executed.Here is the thrown exception:
I saw a few similiar issues here, but from my point of view all of them doesn't exactly match to my problem. I am quite new to Electron, so sorry if it's obvious for everyone but me.
Versions, Operating System and Hardware
The text was updated successfully, but these errors were encountered: