mapiacompany / capacitor-codepush

Capacitor plugin for CodePush
http://appcenter.ms
Other
152 stars 64 forks source link

ERROR in node_modules/capacitor-codepush/dist/esm/definitions.d.ts:1:13 - error TS1005: '=' expected. #29

Closed rvuyyuru1 closed 3 years ago

rvuyyuru1 commented 3 years ago

ERROR in node_modules/capacitor-codepush/dist/esm/definitions.d.ts:1:13 - error TS1005: '=' expected.

1 import type { NativeCodePushPlugin } from "./nativeCodePushPlugin"; ~ node_modules/capacitor-codepush/dist/esm/definitions.d.ts:1:43 - error TS1005: ';' expected.

1 import type { NativeCodePushPlugin } from "./nativeCodePushPlugin";



"dependencies": {
    "@agm/core": "^1.1.0",
    "@angular/animations": "^8.2.13",
    "@angular/cdk": "^8.2.3",
    "@angular/common": "^8.2.13",
    "@angular/compiler": "^8.2.13",
    "@angular/core": "^8.2.13",
    "@angular/fire": "^5.4.2",
    "@angular/forms": "^8.2.13",
    "@angular/material": "^8.2.3",
    "@angular/platform-browser": "^8.2.13",
    "@angular/platform-browser-dynamic": "^8.2.13",
    "@angular/pwa": "^0.901.5",
    "@angular/router": "^8.2.13",
    "@angular/service-worker": "^8.2.13",
    "@capacitor-community/http": "^0.3.0",
    "@capacitor/android": "^2.4.7",
    "@capacitor/core": "^2.4.7",
    "@capacitor/dialog": "^0.4.6",
    "@capacitor/filesystem": "^0.5.2",
    "@ionic-native/android-permissions": "^5.29.0",
    "@ionic-native/app-version": "^5.31.1",
    "@ionic-native/core": "^5.25.0",
    "@ionic-native/diagnostic": "^5.29.0",
    "@ionic-native/file-opener": "^5.28.0",
    "@ionic-native/firebase-config": "^5.31.1",
    "@ionic-native/geolocation": "^5.29.0",
    "@ionic-native/in-app-browser": "^5.28.0",
    "@ionic-native/location-accuracy": "^5.29.0",
    "@ionic-native/screen-orientation": "^5.28.0",
    "@ionic-native/social-sharing": "^5.25.0",
    "@ionic-native/splash-screen": "^5.25.0",
    "@ionic-native/status-bar": "^5.28.0",
    "@ionic/angular": "^5.6.3",
    "@ionic/pwa-elements": "^3.0.1",
    "@ionic/storage": "2.2.0",
    "@nebular/eva-icons": "4.6.0",
    "@nebular/theme": "4.6.0",
    "@ng-select/ng-select": "^3.7.3",
    "@ngxs/store": "^3.6.2",
    "@sentry/browser": "^5.22.3",
    "angular-fire-schematics": "^1.0.0",
    "angular-otp-box": "^1.0.1",
    "angularx-qrcode": "^2.1.1",
    "blob-util": "^2.0.2",
    "blueimp-canvas-to-blob": "^3.28.0",
    "capacitor-codepush": "https://github.com/mapiacompany/capacitor-codepush",
    "classlist.js": "^1.1.20150312",
    "cordova-browser": "^6.0.0",
    "cordova-plugin-android-permissions": "^1.1.0",
    "cordova-plugin-androidx-adapter": "^1.1.1",
    "cordova-plugin-app-version": "^0.1.12",
    "cordova-plugin-badge": "^0.8.8",
    "cordova-plugin-file-opener2": "^3.0.4",
    "cordova-plugin-firebase-analytics": "4.4.1",
    "cordova-plugin-firebase-config": "^5.0.0",
    "cordova-plugin-firebase-inappmessaging": "^3.4.0",
    "cordova-plugin-geolocation": "^4.1.0",
    "cordova-plugin-inappbrowser": "^5.0.0",
    "cordova-plugin-ionic": "5.4.7",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^4.2.1",
    "cordova-plugin-request-location-accuracy": "^2.3.0",
    "cordova-plugin-screen-orientation": "^3.0.2",
    "cordova-plugin-splashscreen": "^5.0.3",
    "cordova-plugin-statusbar": "^2.4.3",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-plugin-x-socialsharing": "^5.6.5",
    "cordova-sqlite-storage": "^5.1.0",
    "cordova-support-android-plugin": "^1.0.2",
    "cordova.plugins.diagnostic": "^6.0.2",
    "core-js": "^2.5.4",
    "crypto-js": "^3.3.0",
    "device-uuid": "^1.0.4",
    "es6-promise-plugin": "^4.2.2",
    "eva-icons": "1.1.2",
    "firebase": "^6.6.2",
    "hammerjs": "^2.0.8",
    "intl": "^1.2.5",
    "jetifier": "^1.6.6",
    "lodash": "^1.0.0",
    "lottie-web": "^5.7.5",
    "ng-connection-service": "^1.0.4",
    "ng-image-slider": "2.5.0",
    "ng-lazyload-image": "^9.1.0",
    "ng-navigator-share": "^1.0.3",
    "ng-zorro-antd": "^8.5.2",
    "ngx-cookie-service": "^2.4.0",
    "ngx-image-compress": "^8.0.4",
    "ngx-infinite-scroll": "^9.1.0",
    "ngx-lottie": "^6.4.0",
    "ngx-mask": "^8.2.0",
    "ngx-snackbar": "^2.0.1",
    "ngx-timeago": "^1.0.4",
    "pdfmake": "^0.1.66",
    "primeng": "^8.1.1",
    "rxjs": "6.5.2",
    "rxjs-compat": "6.3.0",
    "time-ago-pipe": "^1.3.2",
    "tslib": "^1.11.2",
    "web-animations-js": "^2.3.2",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular-devkit/architect": "^0.803.29",
    "@angular-devkit/build-angular": "^0.803.29",
    "@angular/cli": "^8.3.26",
    "@angular/compiler-cli": "^8.2.13",
    "@angular/language-service": "^8.2.13",
    "@capacitor/cli": "^2.4.6",
    "@ionic/angular-toolkit": "^2.3.3",
    "@ionic/lab": "3.0.1",
    "@ngxs/devtools-plugin": "^3.6.2",
    "@ngxs/logger-plugin": "^3.6.2",
    "@types/crypto-js": "^3.1.45",
    "@types/googlemaps": "^3.39.13",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/lodash": "^4.14.161",
    "@types/node": "~8.9.4",
    "@types/swiper": "^5.3.0",
    "codelyzer": "^5.2.2",
    "cordova-plugin-androidx": "^2.0.0",
    "cordova-plugin-device": "^2.0.3",
    "gulp": "^4.0.2",
    "gulp-gzip": "^1.4.2",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.5.3",
    "protractor": "^5.4.4",
    "ts-node": "~7.0.0",
    "tslint": "~5.15.0",
    "typescript": "~3.5.3"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-x-socialsharing": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-base64-to-gallery": {},
      "cordova-plugin-fcm-with-dependecy-updated": {}
    },
    "platforms": [
      "android"
    ]
  }
leo6104 commented 3 years ago

Typescript 3.8 support 'import type' syntax. You should update angular / typescript version.

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html

https://github.com/angular/angular/blob/master/CHANGELOG.md#910-2020-03-25

Angular 9.1 support Typescript 3.8