# RC0 bundle dev failed: Module /src/pages/login/login.ts does not export LoginPage

**URL:** <https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335>\
**Category:** ionic-v3\
**Created:** [October 9, 2016, 10:45am UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335 "2016-10-09T10:45:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazzuardi](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lazzuardi](https://forum.ionicframework.com/u/lazzuardi)\
**Post date:** [October 9, 2016, 10:45am UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/1 "2016-10-09T10:45:34Z")

</div>

I found error after add login page

> ```
> bundle dev failed: Module /src/pages/login/login.ts does not export LoginPage (imported by /src/app/app.module.ts)
> Error: Module /src/pages/login/login.ts does not export LoginPage (imported by /src/app/app.module.ts)
> 
> ```

I’m create page Login for my default page using

> ionic g page Login

Html, ts and scss file create on src\pages\login folder.

I’m import LoginPage in app.modules.ts and add LoginPage in declarations and entryComponents

> import { LoginPage } from ‘…/pages/login/login’;

In my app.component.ts imposrt LoginPage and set rootPage = LoginPage.

> import { LoginPage } from ‘…/pages/login/login’;  
> rootPage = LoginPage;

My ionic info

> 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:  
> Node Version: v6.7.0

Anyone can help me?  
Thanks before 🙂

---

<div class="post-metadata">

**Author:** ![riteshbhat17](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@riteshbhat17](https://forum.ionicframework.com/u/riteshbhat17)\
**Post date:** [October 9, 2016, 11:57am UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/2 "2016-10-09T11:57:06Z")

</div>

you also need to add the Login page in decleration and entryComponents inside app.module.ts

---

<div class="post-metadata">

**Author:** ![lazzuardi](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lazzuardi](https://forum.ionicframework.com/u/lazzuardi)\
**Post date:** [October 9, 2016, 12:30pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/3 "2016-10-09T12:30:47Z")

</div>

I’m already add in decleration and entryComponents.

I’m confuse, if I remove import LoginPage inside app.module.ts error message remains the same.

This full error message;

> at Module.trace (…\node\_modules\rollup\dist\rollup.js:7706:29)  
> at ModuleScope.findDeclaration (…\node\_modules\rollup\dist\rollup.js:7329:22)  
> at Scope.findDeclaration (…\node\_modules\rollup\dist\rollup.js:5349:39)  
> at Scope.findDeclaration (…\node\_modules\rollup\dist\rollup.js:5349:39)  
> at Identifier.bind …\node\_modules\rollup\dist\rollup.js:6497:29)  
> at …\node\_modules\rollup\dist\rollup.js:5149:50  
> at AssignmentExpression.eachChild (…\node\_modules\rollup\dist\rollup.js:5166:5)  
> at AssignmentExpression.bind …\node\_modules\rollup\dist\rollup.js:5149:7)  
> at AssignmentExpression.bind (…\node\_modules\rollup\dist\rollup.js:5509:23)  
> at …\node\_modules\rollup\dist\rollup.js:5149:50

---

<div class="post-metadata">

**Author:** ![riteshbhat17](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@riteshbhat17](https://forum.ionicframework.com/u/riteshbhat17)\
**Post date:** [October 9, 2016, 12:37pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/4 "2016-10-09T12:37:07Z")

</div>

can you give the code in your app.module file here?

---

<div class="post-metadata">

**Author:** ![lazzuardi](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lazzuardi](https://forum.ionicframework.com/u/lazzuardi)\
**Post date:** [October 9, 2016, 12:40pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/5 "2016-10-09T12:40:50Z")

</div>

app.module.ts:

> import { NgModule } from ‘@angular/core’;  
> import { IonicApp, IonicModule } from ‘ionic-angular’;  
> import { MyApp } from ‘./app.component’;  
> import { AboutPage } from ‘…/pages/about/about’;  
> import { ContactPage } from ‘…/pages/contact/contact’;  
> import { HomePage } from ‘…/pages/home/home’;  
> import { TabsPage } from ‘…/pages/tabs/tabs’;  
> import { LoginPage } from ‘…/pages/login/login’;

> @NgModule({  
> declarations: [  
> MyApp,  
> LoginPage,  
> AboutPage,  
> ContactPage,  
> HomePage,  
> TabsPage  
> ],  
> imports: [  
> IonicModule.forRoot(MyApp)  
> ],  
> bootstrap: [IonicApp],  
> entryComponents: [  
> MyApp,  
> LoginPage,  
> AboutPage,  
> ContactPage,  
> HomePage,  
> TabsPage  
> ],  
> providers:   
> })  
> export class AppModule {}

app.component.ts:

> import { Component } from ‘@angular/core’;  
> import { Platform } from ‘ionic-angular’;  
> import { StatusBar } from ‘ionic-native’;

> //import { TabsPage } from ‘…/pages/tabs/tabs’;  
> import { LoginPage } from ‘…/pages/login/login’;

> @Component({  
> template: `<ion-nav [root]="rootPage"></ion-nav>`  
> })  
> export class MyApp {  
> //rootPage = TabsPage;  
> rootPage = LoginPage;

> constructor(platform: Platform) {  
> platform.ready().then(() =\> {  
> // Okay, so the platform is ready and our plugins are available.  
> // Here you can do any higher level native things you might need.  
> StatusBar.styleDefault();  
> });  
> }  
> }

---

<div class="post-metadata">

**Author:** ![Ellezo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ellezo/32/104261_2.png) [@Ellezo](https://forum.ionicframework.com/u/Ellezo)\
**Post date:** [October 9, 2016, 2:23pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/6 "2016-10-09T14:23:49Z")

</div>

Can you share the code in your login.ts?

---

<div class="post-metadata">

**Author:** ![lazzuardi](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lazzuardi](https://forum.ionicframework.com/u/lazzuardi)\
**Post date:** [October 9, 2016, 2:27pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/7 "2016-10-09T14:27:36Z")

</div>

login.ts

> import { Component } from ‘@angular/core’;  
> import { NavController } from ‘ionic-angular’;  
> @Component({  
> selector: ‘page-login’,  
> templateUrl: ‘login.html’  
> })  
> export class Login {  
> constructor(public navCtrl: NavController) {}  
> ionViewDidLoad() {  
> console.log(‘Hello Login Page’);  
> }  
> }

---

<div class="post-metadata">

**Author:** ![Ellezo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ellezo/32/104261_2.png) [@Ellezo](https://forum.ionicframework.com/u/Ellezo)\
**Post date:** [October 9, 2016, 2:30pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/8 "2016-10-09T14:30:05Z")

</div>

rename export class Login  
into export class LoginPage

---

<div class="post-metadata">

**Author:** ![lazzuardi](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lazzuardi](https://forum.ionicframework.com/u/lazzuardi)\
**Post date:** [October 9, 2016, 2:34pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/9 "2016-10-09T14:34:06Z")

</div>

Thanks Ellezo 😀 😁

---

<div class="post-metadata">

**Author:** ![Ellezo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ellezo/32/104261_2.png) [@Ellezo](https://forum.ionicframework.com/u/Ellezo)\
**Post date:** [October 9, 2016, 2:34pm UTC](https://forum.ionicframework.com/t/rc0-bundle-dev-failed-module-src-pages-login-login-ts-does-not-export-loginpage/66335/10 "2016-10-09T14:34:59Z")

</div>

Glad I helped a bit. Happy coding. 🙂
