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
318 stars 58 forks source link

Unhandled Promise: No such file or directory #237

Open DamonMedek opened 1 year ago

DamonMedek commented 1 year ago

Describe the bug After build, I install like your doc says. but when I try to run I get [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "/bin/sh: line 0: cd: /Users/damon/Documents/My: No such file or directory ".] { code: 'ERR_UNHANDLED_REJECTION' }

To Reproduce Steps to reproduce the behavior: Clone https://github.com/flame-app-studio/svelte_capacitor_tailwind_starter (npm run dev and npm run build works great) then follow your electron community install and try to open app.

New update everything. I tried changing "publishAutoUpdate": false in electron config file with no success

what am I missing?

Syrex-o commented 10 months ago

Hi,

I had the same issue (ERR_UNHANDLED_REJECTION), after updating @capacitor/cli from v4 to v5. Just saw that svelte_capacitor_tailwind_starter is running capacitor v3. According to the docs it should work, but have you tried to migrate to v4?

IT-MikeS commented 10 months ago

line 0: cd: /Users/damon/Documents/My: No such file or directory

It's ending the path at the "My" in what I assume is "My Documents" or similar

So it's having issue with the space in the path, try with the project in a path without a space