Added Capacitor & removed it. Appflow now giving Capacitor issues

Hi. I added Capacitor to my project a week ago, now I wanna go back to Cordova. I removed all the Capacitor packages etc and all references from my code but now I’m getting Capacitor errors when trying to build my iOS app using Appflow.

Appflow states that it’s a Cordova project

[23:58:56]: --------------------------------
[23:58:56]: --- Step: detect_native_type ---
[23:58:56]: --------------------------------
[23:58:56]: Checking if cordova or capacitor project
[23:58:56]: Cordova project detected

however I’m getting this error

[23:57:11]: Generating app manifest...
[23:57:11]: $ ionic deploy manifest
[23:57:12]: ▸ [ERROR] The webDir property must be set in the Capacitor configuration file (capacitor.config.json).
[23:57:12]: ▸ See the Capacitor docs for more information: https://capacitor.ionicframework.com/docs/basics/configuring-your-app

anyone got a solution? Thanks.

ok, I got the solution just remove the setting in ionic.config.json

{
  "name": "mobile",
  "integrations": {
    "cordova": {},
    "capacitor": {
      "enabled": false
    }
  },
  "type": "angular",
  "id": "1111"
}

to

{
  "name": "mobile",
  "integrations": {
    "cordova": {}
  },
  "type": "angular",
  "id": "1111"
}

I did, but still i am getting the same error in app flow.

I did it, and also try to uninstall capacitor with these command

npm uninstall --save @capacitor/cli @capacitor/core

but i’m still getting same error, anyone can fix it?

Hi Arif4,

This looks a little weird to me. I suspect it could an issue with your www directory configuration in your project.

It might be helpful for us to take a look at the entire log. It would be great, if you can contact the Appflow support along with your App Id and Build ID for further assistance.

Thanks,

looks like an @ionic/cli bug, make sure you are using latest version

if you can still reproduce try removing the capacitor.config.json, and also report the issue on Issues · ionic-team/ionic-cli · GitHub