-
Notifications
You must be signed in to change notification settings - Fork 131
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
Package causing error on app open #162
Comments
Same issue, I haven't touched this code in my app for months but now suddenly it breaks the app |
@whospsycho I got a temporary solution that works for me It's related to the issues mentioned here:
I followed these steps (some of these might be unneeded, not sure):
Before: // Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require("electron-squirrel-startup")) {
app.quit();
} Modify to: // @ts-expect-error no types
import started from "electron-squirrel-startup";
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (started) {
app.quit();
} |
@edymusajev Your fix seems to have worked perfectly, although I left out the downgrading |
You you can do this instead of downgrading. const config: ForgeConfig = {
packagerConfig: {
asar: false,
},
plugins: [
new FusesPlugin({
[FuseV1Options.OnlyLoadAppFromAsar]: false,
}),
],
}; |
+1 |
I also encountered this issue, but I resolved it by changing the import statement to: import { updateElectronApp } from "update-electron-app";
import started from "electron-squirrel-startup";
updateElectronApp({})
if (started) {
app.quit();
} I hope this helps you as well! |
Hi, I'm having an issue where whenever I build my application into a ZIP or a DMG for macOS/darwin and I open the application, it returns the error:
My forge config:
I'm running on macOS Monterey 12.5 and Bun 1.1.33.
I've tried multiple times to remove all node_modules, reinstall them, update them, etc, but nothing seems to fix my problem.
Any help would be greatly appreciated, thanks.
The text was updated successfully, but these errors were encountered: