找不到模块“ promise-polyfill / lib / polyfill”

时间:2019-10-31 14:35:05

标签: ionic-framework ionic3 polyfills

我开始从事一个旧项目,并且遇到了这个问题。

我尝试从node_modules中删除,但仍然有相同的错误,这是我的pacakage.json和错误的屏幕截图

{
  "name": "myapp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build --prod",
    "lint": "ionic-app-scripts lint"
  },
  "config": {
    "ionic_copy": "./config/copy.config.js"
  },
  "dependencies": {
    "@angular/cli": "^6.0.8",
    "@angular/common": "6.0.7",
    "@angular/compiler": "6.0.7",
    "@angular/compiler-cli": "6.0.7",
    "@angular/core": "6.0.7",
    "@angular/forms": "6.0.7",
    "@angular/http": "6.0.7",
    "@angular/platform-browser": "6.0.7",
    "@angular/platform-browser-dynamic": "6.0.7",
    "@firebase/database": "0.2.1",
    "@ionic-native/camera": "^4.20.0",
    "@ionic-native/core": "^4.9.0",
    "@ionic-native/diagnostic": "4.7.0",
    "@ionic-native/email-composer": "4.7.0",
    "@ionic-native/facebook": "^4.7.0",
    "@ionic-native/firebase": "^4.18.0",
    "@ionic-native/geolocation": "^4.7.0",
    "@ionic-native/google-analytics": "4.7.0",
    "@ionic-native/google-plus": "^4.12.2",
    "@ionic-native/in-app-browser": "4.7.0",
    "@ionic-native/keyboard": "^4.7.0",
    "@ionic-native/native-storage": "^4.15.0",
    "@ionic-native/network": "4.7.0",
    "@ionic-native/onesignal": "^4.16.0",
    "@ionic-native/photo-library": "^4.20.0",
    "@ionic-native/splash-screen": "4.7.0",
    "@ionic-native/sqlite": "^4.20.0",
    "@ionic-native/status-bar": "4.7.0",
    "@ionic-native/toast": "4.7.0",
    "@ionic/storage": "^2.1.3",
    "@types/intro.js": "^2.4.4",
    "angular-common": "^0.1.0",
    "angularfire2": "^5.0.0-rc.11",
    "build": "^0.1.4",
    "cordova": "^8.1.2",
    "cordova-android": "7.1.1",
    "cordova-android-support-gradle-release": "^3.0.1",
    "cordova-browser": "~5.0.3",
    "cordova-ios": "^5.0.1",
    "cordova-plugin-add-swift-support": "^1.7.2",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-email-composer": "^0.8.15",
    "cordova-plugin-facebook4": "^2.5.0",
    "cordova-plugin-file": "^5.0.0",
    "cordova-plugin-firebase": "^1.1.4",
    "cordova-plugin-geolocation": "^4.0.2",
    "cordova-plugin-google-analytics": "^1.8.6",
    "cordova-plugin-googleplus": "^5.2.1",
    "cordova-plugin-inappbrowser": "^3.0.0",
    "cordova-plugin-ionic": "^3.1.2",
    "cordova-plugin-ionic-keyboard": "2.1.3",
    "cordova-plugin-ionic-webview": "^4.1.0",
    "cordova-plugin-nativestorage": "^2.3.2",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-photo-library": "^2.1.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-toast": "^2.7.2",
    "cordova-sqlite-storage": "^2.5.2",
    "cordova-support-android-plugin": "^1.0.1",
    "cordova.plugins.diagnostic": "^4.0.10",
    "firebase": "^5.4.2",
    "font-awesome": "^4.7.0",
    "geofire": "^4.1.2",
    "geofirestore": "^1.2.0",
    "grpc": "^1.24.0",
    "hoek": "^5.0.4",
    "intro.js": "^2.9.3",
    "ionic": "^5.4.2",
    "ionic-angular": "3.9.4",
    "ionicons": "3.0.0",
    "ios": "0.0.1",
    "ios-sim": "^8.0.0",
    "moment": "^2.24.0",
    "ng2-cordova-oauth": "0.0.8",
    "ngx-autosize": "^1.6.0",
    "onesignal-cordova-plugin": "^2.4.5",
    "promise-polyfill": "6.0.2",
    "rxjs": "6.3.3",
    "rxjs-compat": "6.3.3",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.3",
    "@ionic/v4-migration-tslint": "^1.7.0",
    "gradle": "^1.0.9",
    "tslint-ionic-rules": "0.0.13",
    "typescript": "~2.7.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-email-composer": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-compat": {},
      "cordova-plugin-google-analytics": {
        "GMS_VERSION": "11.0.1"
      },
      "cordova-plugin-x-toast": {},
      "cordova-plugin-photo-library": {
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This is so that you can add images to your posts and messagess"
      },
      "cordova-sqlite-storage": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-device": {},
      "cordova-plugin-statusbar": {},
      "cordova.plugins.diagnostic": {},
      "cordova-plugin-nativestorage": {},
      "cordova-plugin-facebook4": {
        "APP_ID": "1211109085678584",
        "APP_NAME": "heard",
        "FACEBOOK_ANDROID_SDK_VERSION": "4.+"
      },
      "onesignal-cordova-plugin": {},
      "cordova-plugin-add-swift-support": {},
      "cordova-plugin-firebase": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-android-support-gradle-release": {
        "ANDROID_SUPPORT_VERSION": "27.0.0"
      },
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-geolocation": {}
    },
    "platforms": [
      "browser",
      "android"
    ]
  }
}

这是错误图像的屏幕截图

enter image description here

0 个答案:

没有答案