Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Uninstalling the Plugin gives Error: Variable(s) missing (use: --variable URL_SCHEME=value --variable DEEPLINK_HOST=value) #258

@Mr-Anonymous

Description

@Mr-Anonymous

I have ionic 6 and when I installed this plugin I noticed these 2 things:

  1. After installation, the noticed that the config.xml file is not updated with the deeplinks plugin details like it used to before.

  2. When I try to uninstall the plugin, I then get the following error message:

$ ionic cordova plugin rm ionic-plugin-deeplinks
> cordova plugin remove ionic-plugin-deeplinks
Variable(s) missing (use: --variable URL_SCHEME=value --variable DEEPLINK_HOST=value).

  ─────────────────────────────────────────────────

     Ionic CLI update available: 6.18.1 → 6.18.2
          Run npm i -g @ionic/cli to update

  ─────────────────────────────────────────────────

[ERROR] An error occurred while running subprocess cordova.
        
        cordova plugin remove ionic-plugin-deeplinks exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.

I install the plugin using this command:

ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=mywebsite --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=www.mywebsite.com.au --variable ANDROID_PATH_PREFIX=/

My Ionic Info:

$ ionic info

Ionic:

   Ionic CLI                     : 6.18.1 (/Users/neel/.nvm/versions/node/v17.4.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.0.5
   @angular-devkit/build-angular : 13.0.4
   @angular-devkit/schematics    : 13.0.4
   @angular/cli                  : 13.0.4
   @ionic/angular-toolkit        : 5.0.3

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 10.1.1, ios 6.2.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 9 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 1.5.0

System:

   Android SDK Tools : 26.1.1 (/Users/neel/Library/Android/sdk)
   ios-deploy        : 1.11.4
   ios-sim           : 8.0.2
   NodeJS            : v17.4.0 (/Users/neel/.nvm/versions/node/v17.4.0/bin/node)
   npm               : 8.3.1
   OS                : macOS Monterey
   Xcode             : Xcode 13.2.1 Build version 13C100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions