Can't use components in service

After updating ionic 2 to rc.4 I get the following runtime error in my app:

Can’t resolve all parameters for X: (Http, ?).

The reason is because I import and use components/pages in a service/provider. I have an array with all my app pages in a provider:

private pages: Array<{name: string, component: any}> = [
{ name: ‘Home’, component: HomePage },
{ name: ‘Posts’, component: PostsPage }
etc.
];

When I remove this array the app doesn’t get the runtime error anymore. But it worked in rc.2. Is it not possible to use pages in providers anymore?

Thank you!

Look into forwardRef, it might help your situation.