-
Notifications
You must be signed in to change notification settings - Fork 42
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
App threw an error during load When I use electron-forge create a templates=webpack electron project #28
Comments
Look for potential solution in prebuild/node-gyp-build#22 I'm using esbuild and have no issues https://github.com/SnosMe/awakened-poe-trade/blob/d1e30bfe754f2fbdc44e3ea12a6278e4d61cb242/main/build/script.cjs#L27 |
I ran into similar issues especially when trying to build a universal mac app, I had to disable auto rebuild via |
Thank you. It's useful when I add externals like |
I have a new problem. I used
|
I ran into this issue using electron-overlay-window. As in @focus-sc's case, adding What helped me was using @timfish/forge-externals-plugin and adding the following to forge.config.js: plugins: [
...,
new ForgeExternalsPlugin({
externals: ['electron-overlay-window'],
})
], |
It's right run when I use electron-forge create a normal electron project. But if I use templates=webpack or templates=webpack-typescript to create an electron project, it's will be abnormal when I use yarn start to run the project. This screenshot show the error: Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=110 uv=1 libc=glibc node=16.17.1 electron=22.0.0 webpack=true;
![image](https://user-images.githubusercontent.com/61377269/211492242-125959b0-c94d-4c1e-b5bb-808efce383de.png)
The text was updated successfully, but these errors were encountered: