How to use @IonicPage with angular cli

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.

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