ctorparameters.map不是离子2上的功能误差



我想使用网络信息插件,并且我有一个旧的离子本地版本。所以我做到了:

npm rm --save ionic native
npm install --save ionic-native@latest
npm update

因为网络信息插件在2.2.12.

中更改

但是现在,当我这样做时:ionic serve --watch控制台投掷:ctorparameters.map不是函数

我的离子CLI版本是:2.1.14

和我的软件包。JSON:

{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "2.1.1",
    "@angular/compiler": "2.1.1",
    "@angular/compiler-cli": "2.1.1",
    "@angular/core": "2.1.1",
    "@angular/forms": "2.1.1",
    "@angular/http": "2.1.1",
    "@angular/platform-browser": "2.1.1",
    "@angular/platform-browser-dynamic": "2.1.1",
    "@angular/platform-server": "2.1.1",
    "@ionic/storage": "^1.1.6",
    "angular2-fullcalendar": "^1.1.1",
    "angularfire2": "^2.0.0-beta.6-preview",
    "firebase": "^3.6.4",
    "ionic-angular": "2.0.0-rc.3",
    "ionic-native": "^2.5.1",
    "ionicons": "3.0.0",
    "jquery-ui": "^1.12.1",
    "rxjs": "5.0.0-beta.12",
    "soundcloud": "^3.1.2",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.45",
    "typescript": "2.0.6"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-statusbar",
    "cordova-plugin-console",
    "cordova-plugin-device",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [],
  "description": "Mindfulness: An Ionic project"
}

任何解决方案?

谢谢!


编辑:

我尝试更新为rc4:(2.0.0-rc.4(2016-12-15))

我使用了更新的指南,然后,控制台抛出了我:

A recent change occured in ionic-app-scripts.
Please create a new file "main.ts" containing the content of "main.dev.ts", and then delete  the deprecated files.

所以我搜索了,我发现了这个问题我完成了此步骤,然后当我这样做时:ionic serve --watch它构建,但是应用程序没有加载和控制台抛出:

GET http://localhost:8100/build/main.css (index):33
GET http://localhost:8100/build/main.js (index):45
GET http://localhost:8100/build/main.js 404 (Not Found)(index):45 

已解决:https://github.com/driftyco/ionic/issues/10608

我反对离子2存储库中的一个问题。

相关内容

  • 没有找到相关文章

最新更新