capacitor-community / electron

Deploy your Capacitor apps to Linux, Mac, and Windows desktops, with the Electron platform! 🖥️
https://capacitor-community.github.io/electron/
MIT License
338 stars 59 forks source link

Unhandled Promise Rejection Error: ERR_FAILED (-2) loading #294

Open keithfawcett opened 1 month ago

keithfawcett commented 1 month ago

Describe the bug The app is throwing this error when attempting to launch it a second time or when attempting to launch it via a Deep Link in Windows. This only happens when DeepLink is enabled in capacitor.config.js.

I have not tested in other OSes.

Unhandled Promise Rejection Error: ERR_FAILED (-2) loading 'capacitor-electron://-' at rejectAndCleanup (node:electron/js2c/browser_init:2:85056) at WebContents.stopLoadingListener (node:electron/js2c/browser_init:2:85443) at WebContents.emit (node:events:513:28)

To Reproduce Attempt to launch the app a second time via executable or through a deep link.

Expected behavior The second instance should close without an error.

Desktop (please complete the following information):

JendaT commented 2 days ago

Can confirm to see this error too. We also have deepLinksEnabled.