danielsogl / awesome-cordova-plugins

Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
https://danielsogl.gitbook.io/awesome-cordova-plugins/
Other
2.41k stars 2.42k forks source link

Metadata version mismatch @ionic-native/document-picker/index.d.ts #2717

Closed jasvindersingh-evon closed 6 years ago

jasvindersingh-evon commented 6 years ago

[ x ] bug report

Current behavior:

ankit$ ionic cordova build android --prod
[INFO] Running app-scripts build: --prod --platform android --target cordova

[21:12:22]  build prod started ...
[21:12:22]  clean started ...
[21:12:22]  clean finished in 11 ms
[21:12:22]  copy started ...
[21:12:23]  deeplinks started ...
[21:12:23]  deeplinks finished in 318 ms
[21:12:23]  ngc started ...
Error: Metadata version mismatch for module /Volumes/data 1/Jassi/Running Projects/Ionic/xxx/node_modules/@ionic-native/document-picker/index.d.ts, found version 4, expected 3

Expected behavior: No errors

Steps to reproduce

ionic cordova build android --prod 

Related code:

{
    "name": "FieldView",
    "version": "0.0.1",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "lint": "ionic-app-scripts lint",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "^4.4.6",
        "@angular/compiler": "^4.4.6",
        "@angular/compiler-cli": "^4.4.6",
        "@angular/core": "^4.4.6",
        "@angular/forms": "^4.4.6",
        "@angular/http": "^4.4.6",
        "@angular/platform-browser": "^4.4.6",
        "@angular/platform-browser-dynamic": "^4.4.6",
        "@ionic-native/app-version": "^4.5.0",
        "@ionic-native/barcode-scanner": "^4.5.0",
        "@ionic-native/camera": "^4.5.2",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/device": "^4.5.2",
        "@ionic-native/diagnostic": "^4.10.1",
        "@ionic-native/document-picker": "^4.12.2",
        "@ionic-native/email-composer": "^4.5.0",
        "@ionic-native/fcm": "^4.5.0",
        "@ionic-native/file": "^4.5.2",
        "@ionic-native/file-chooser": "^4.10.1",
        "@ionic-native/file-path": "^4.10.1",
        "@ionic-native/file-transfer": "^4.5.2",
        "@ionic-native/firebase": "^4.5.0",
        "@ionic-native/geolocation": "^4.5.0",
        "@ionic-native/in-app-browser": "^4.8.0",
        "@ionic-native/keyboard": "^4.5.0",
        "@ionic-native/launch-navigator": "^4.6.0",
        "@ionic-native/native-geocoder": "^4.5.0",
        "@ionic-native/native-page-transitions": "^4.5.0",
        "@ionic-native/network": "^4.5.0",
        "@ionic-native/screen-orientation": "^4.5.3",
        "@ionic-native/splash-screen": "^3.14.0",
        "@ionic-native/sqlite": "^4.5.3",
        "@ionic-native/status-bar": "3.12.1",
        "@ngx-translate/core": "^8.0.0",
        "@ngx-translate/http-loader": "^2.0.0",
        "android-versions": "^1.2.1",
        "angular2-moment": "^1.7.0",
        "angular2-signaturepad": "^2.6.1",
        "com.telerik.plugins.nativepagetransitions": "^0.6.5",
        "cordova-android": "6.4.0",
        "cordova-ios": "^4.5.4",
        "cordova-plugin-actionsheet": "^2.3.3",
        "cordova-plugin-add-swift-support": "^1.7.2",
        "cordova-plugin-app-version": "^0.1.9",
        "cordova-plugin-camera": "^3.0.0",
        "cordova-plugin-compat": "^1.2.0",
        "cordova-plugin-device": "^2.0.2",
        "cordova-plugin-dialogs": "^1.3.4",
        "cordova-plugin-documentpicker": "git+https://github.com/iampossible/Cordova-DocPicker.git",
        "cordova-plugin-email-composer": "^0.8.15",
        "cordova-plugin-fcm": "^2.1.2",
        "cordova-plugin-file": "^6.0.1",
        "cordova-plugin-file-transfer": "^1.7.1",
        "cordova-plugin-filechooser": "^1.0.1",
        "cordova-plugin-filepath": "^1.4.2",
        "cordova-plugin-geolocation": "^3.0.0",
        "cordova-plugin-inappbrowser": "^3.0.0",
        "cordova-plugin-nativegeocoder": "^2.0.5",
        "cordova-plugin-network-information": "^1.3.4",
        "cordova-plugin-screen-orientation": "^3.0.1",
        "cordova-plugin-splashscreen": "^4.1.0",
        "cordova-plugin-statusbar": "^2.4.2",
        "cordova-plugin-whitelist": "^1.3.3",
        "cordova-sqlite-storage": "^2.4.0",
        "cordova.plugins.diagnostic": "^4.0.10",
        "es6-promise-plugin": "^4.2.2",
        "intl": "^1.2.5",
        "ionic-angular": "3.6.0",
        "ionic-native": "^2.9.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "moment": "^2.19.4",
        "phonegap-plugin-barcodescanner": "^7.1.2",
        "rxjs": "^5.5.11",
        "sw-toolbox": "3.6.0",
        "ts-md5": "^1.2.2",
        "uk.co.workingedge.phonegap.plugin.launchnavigator": "^4.2.2",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@angular/cli": "^1.6.0",
        "@ionic/app-scripts": "^3.1.10",
        "typescript": "2.3.4"
    },
    "description": "An Ionic project",
    "cordova": {
        "platforms": [
            "android",
            "ios"
        ],
        "plugins": {
            "com.telerik.plugins.nativepagetransitions": {},
            "cordova-plugin-actionsheet": {},
            "cordova-plugin-add-swift-support": {},
            "cordova-plugin-app-version": {},
            "cordova-plugin-camera": {
                "PHOTOLIBRARY_USAGE_DESCRIPTION": " ",
                "CAMERA_USAGE_DESCRIPTION": " "
            },
            "cordova-plugin-dialogs": {},
            "cordova-plugin-compat": {},
            "cordova-plugin-email-composer": {},
            "cordova-plugin-nativegeocoder": {
                "LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
            },
            "cordova-plugin-network-information": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "phonegap-plugin-barcodescanner": {
                "CAMERA_USAGE_DESCRIPTION": " ",
                "ANDROID_SUPPORT_V4_VERSION": "27.+"
            },
            "uk.co.workingedge.phonegap.plugin.launchnavigator": {
                "LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes"
            },
            "cordova-plugin-geolocation": {
                "GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
            },
            "cordova-plugin-file-transfer": {},
            "cordova-plugin-device": {},
            "cordova-plugin-file": {},
            "cordova-plugin-screen-orientation": {},
            "cordova-sqlite-storage": {},
            "cordova-plugin-fcm": {},
            "cordova-plugin-inappbrowser": {},
            "cordova.plugins.diagnostic": {},
            "cordova-plugin-filechooser": {},
            "cordova-plugin-filepath": {},
            "cordova-plugin-documentpicker": {}
        }
    }
}

Ionic info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : android 6.4.0 ios 4.5.4
    Ionic Framework    : ionic-angular 3.6.0

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 2.0.0
    Node              : v8.11.1
    npm               : 6.4.0
    OS                : macOS High Sierra
    Xcode             : Xcode 9.4.1 Build version 9F2000
danielsogl commented 6 years ago

You have to update to Angular 5

jasvindersingh-evon commented 6 years ago

Could you please tell the command to update to Angular 5?