Closed ari62 closed 2 years ago
Please build your project first using, npm run build
I added the following script to my root:
"scripts" {
"postbuild": "cap sync && npm run copy",
"copy": "rm -rf electron/app && mkdir electron/app && cp -r dist/* electron/app/",
}
Describe the bug Running:
npx cap add @capacitor-community/electron
Gives the following error:My project is an ionic angular app. It doesn't have a www folder (no www folder is the default when using ionic start), but it has a src folder.
To Reproduce Run
npx cap add @capacitor-community/electron
In an app without a www folderExpected behavior Not sure, maybe give a warning if it isn't required. I don't think it should be expected that the electron app would be the same as the web app. I am left unsure if the "add" process completed or errored halfway through, so clarification would be good.
Desktop (please complete the following information): macOS 12.1