繁体   English   中英

在Ionic 2上,ctorParameters.map不是函数错误

[英]ctorParameters.map is not a funcion error on Ionic 2

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

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

因为网络信息插件在2.2.12.已更改2.2.12.

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

我的Ionic CLI版本是: 2.1.14

还有我的package.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

我在ionic 2存储库中取消了一个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM