Skip to content
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

Unhandled Promise: No such file or directory #237

Open
DamonMedek opened this issue Feb 1, 2023 · 2 comments
Open

Unhandled Promise: No such file or directory #237

DamonMedek opened this issue Feb 1, 2023 · 2 comments

Comments

@DamonMedek
Copy link

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
Copy link

Syrex-o commented Sep 4, 2023

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
Copy link
Member

IT-MikeS commented Sep 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants