Upgrades to Ionic 2 RC Problem

Hi Ionic Team,

I already created lots of stuff with ionic 2, you guyz are amazing to maintained latest RC to high level.

I had existing ionic project and maintained it to upto beta 0.12, now accoding to changelog of IONIC 2 rc, i made all necessary changes to upgrade my app, but not able to run my app, facing following issue

Uncaught Error: Type Avatar is part of the declarations of 2 modules: IonicModule and AppModule! Please consider moving Avatar to a higher module that imports IonicModule and AppModule. You can also create a new NgModule that exports and includes Avatar then import that NgModule in IonicModule and AppModule.

I think it seem regarding use of ion-avatar (about meta data resolve i read lots of stuff to solve this but not able to solve it yet), thanks in advance.

My IONIC CLI Details

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Fedora Description: Fedora release 23 (Twenty Three)
Node Version: v6.7.0

Removing IONIC_DIRECTIVES from the declarations in AppModule solved this for me.

1 Like