Bridge error while integrating Capacitor with existing Ionic App

Hi - I am integrating Capacitor with an existing Ionic app to use Auto0 authentication. Getting the bridge error. Following are the steps I performed -

  1. Ionic social app build with local host
    npm install
    after that npm run build
    ionic capacitor add android
    ionic capacitor build android
    app-debug-step1.apk Build Successfully

  2. Installed auth0 reference plugins
    npm install @auth0/auth0-angular@1.5.1
    npm install @capacitor/browser@1.0.2
    npm install @capacitor/app@1.0.2
    ionic capacitor build android

Got this error:

Updated @capacitor/core": “^3.0.0-rc.0” and @capacitor/cli": "^3.0.0-rc.0. Fix import plugins, and it worked.

npm install
ionic capacitor build android
same error occurs

npm run build
ionic capacitor build android
same error occurs

npm install @auth0/auth0-angular@1.7.0
ionic capacitor build android
same error occurs

npm install @capacitor/core@2.4.6
npx cap sync
same error occurs

npm i @capacitor/android@3.2.3
npm i @capacitor/core@3.2.3

npx cap sync

Installed auth0 reference plugins
app-debug-step2.apk Build Successfully

  1. Deleted android folder

npm install @auth0/auth0-angular@1.7.0
npm install @capacitor/browser@1.0.2
npm install @capacitor/app@1.0.2

npm i @capacitor/android@2.4.7
npm i @capacitor/core@3.2.3

Getting the bridge error - ENOENT: No such file or directory

I was able to generate an apk build with capacitor but capacitor App and Browser Plugin are not working properly.

Please let me know how to resolve this issue. Thanks.

Why are you installing RC versions? we released Capacitor 3 final back in May and latest version is 3.2.4 at the moment. All Capacitor versions should match (cli, core, ios and android)
And all @capacitor/pluginName require capacitor 3, you are mixing those plugins with @capacitor/android 2

1 Like