# How to use @IonicPage with angular cli

**URL:** <https://forum.ionicframework.com/t/how-to-use-ionicpage-with-angular-cli/107988>\
**Category:** ionic-v3\
**Created:** [October 6, 2017, 10:25pm UTC](https://forum.ionicframework.com/t/how-to-use-ionicpage-with-angular-cli/107988 "2017-10-06T22:25:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salmanmd786](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@salmanmd786](https://forum.ionicframework.com/u/salmanmd786)\
**Post date:** [October 6, 2017, 10:25pm UTC](https://forum.ionicframework.com/t/how-to-use-ionicpage-with-angular-cli/107988/1 "2017-10-06T22:25:54Z")

</div>

I have my app already developed on angular-cli version 4.4.3, I tried integrating the ionic-angular version 3.7.1, and did some modifications on top of it to make the app run, everything works fine. But the issue is @IonicPage, this is not working. Is there a way to make it work using angular-cli?

Error:

ERROR Error: Uncaught (in promise): invalid link: HomePage  
at resolvePromise (zone.js:824)  
at Object.reject (zone.js:746)  
at Nav.webpackJsonp…/…/…/…/ionic-angular/navigation/nav-controller-base.js.NavControllerBase.\_fireError (nav-controller-base.js:322)  
at Nav.webpackJsonp…/…/…/…/ionic-angular/navigation/nav-controller-base.js.NavControllerBase.\_failed (nav-controller-base.js:310)  
at nav-controller-base.js:365  
at ZoneDelegate.webpackJsonp…/…/…/…/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:392)  
at Object.onInvoke (core.es5.js:3890)  
at ZoneDelegate.webpackJsonp…/…/…/…/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)  
at Zone.webpackJsonp…/…/…/…/zone.js/dist/zone.js.Zone.run (zone.js:142)  
at zone.js:873

Thanks.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [October 6, 2017, 10:49pm UTC](https://forum.ionicframework.com/t/how-to-use-ionicpage-with-angular-cli/107988/2 "2017-10-06T22:49:48Z")

</div>

> [@salmanmd786](#):
>
> @IonicPage, this is not working. Is there a way to make it work using angular-cli?

Nope. The magical loading table is constructed by ionic-app-scripts, so you must use it to build.
