Ionic-framework: ionic-angular 2.0.0-beta.6 npm package has outdated typings

Created on 30 Apr 2016  ·  5Comments  ·  Source: ionic-team/ionic-framework

The [email protected] npm package has outdated typings. This version of ionic depends on [email protected] in which a few components (e.g. AppViewManager) were renamed. However the typings (e.g. /ionic/components/nav.d.ts) still import the old components.

Most helpful comment

@GuillaumeM69 You have to add those packages in the package.json as explicit dependencies for your application.

All 5 comments

@eugenpodaru AFAIK Ionic 2.0.0-beta.6 depends on Angular 2.0.0-beta.15 and not on beta.16. There's a bug in Angular 2.0.0-beta.16 which breaks the app and also a change detection regression. Where have you found the dependency on [email protected]?

@iignatov Yes, you are right, it depends on [email protected]. I checked the package.json in the current branch and not the package.json in the actual release.

I downgraded to [email protected] and it compiles again. Thanks and sorry :)

npm install angular2@^2.0.0-beta.15 --save-exact
dev@ /Users/guillaume/Dev/
├── [email protected] extraneous
├── UNMET PEER DEPENDENCY es6-shim@^0.35.0
├── UNMET PEER DEPENDENCY [email protected]
├── UNMET PEER DEPENDENCY [email protected]
└── UNMET PEER DEPENDENCY zone.js@^0.6.12

npm WARN [email protected] requires a peer of es6-shim@^0.35.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of zone.js@^0.6.12 but none was installed.

How to install angular2@^2.0.0-beta.15 plz ?

@GuillaumeM69 You have to add those packages in the package.json as explicit dependencies for your application.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daveshirman picture daveshirman  ·  3Comments

alan-agius4 picture alan-agius4  ·  3Comments

danbucholtz picture danbucholtz  ·  3Comments

GeorgeAnanthSoosai picture GeorgeAnanthSoosai  ·  3Comments

MrBokeh picture MrBokeh  ·  3Comments