electron icon indicating copy to clipboard operation
electron copied to clipboard

Unhandled Promise: No such file or directory

Open DamonMedek opened this issue 1 year ago • 2 comments

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?

DamonMedek avatar Feb 01 '23 21:02 DamonMedek

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?

Syrex-o avatar Sep 04 '23 06:09 Syrex-o

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

IT-MikeS avatar Sep 06 '23 13:09 IT-MikeS