Component errors after update to beta 8



I recently updated my ionic beta7 project to beta8 following all the steps mentioned here.

Since this update, when I run gulp build, I get this errors:

TypeScript error: /Users/username/Documents/Repositories/APPs/appname/app/pages/detail/detail.ts(1,9): Error TS2305: Module '"/Users/username/Documents/Repositories/APPs/appname/node_modules/ionic-angular/index"' has no exported member 'Component'.
TypeScript error: app/app.ts(1,9): Error TS2305: Module '"/Users/username/Documents/Repositories/APPs/appname/node_modules/ionic-angular/index"' has no exported member 'Component'.

Basically, it tells me that ionic-angular has no exported member Component.

My system information:

Cordova CLI: 6.2.0
Gulp version:  CLI version 1.2.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.8
Ionic CLI Version: 2.0.0-beta.30
Ionic App Lib Version: 2.0.0-beta.16
ios-deploy version: Not installed
ios-sim version: 5.0.8 
OS: Mac OS X El Capitan
Node Version: v5.11.1
Xcode version: Xcode 7.3 Build version 7D175 

Any help will be appreciated.

Thanks in advance


Ups! I found my mistake. :head_bandage:

I was importing ‘Component’ from ionic-angular:

import {Component, Platform, ionicBootstrap} from ‘ionic-angular’;

But Component is exported by @angular/core:

import {Component} from ‘@angular/core’;