Only instances of Provider and Type are allowed, got: [object Object]
<p>This is my configuration in package.json:</p>

<pre><code>"dependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/platform-server": "2.0.0-rc.4",
"@angular/router": "3.0.0-beta.1",
"angular2-universal": "^0.104.5",
"aspnet-prerendering": "^1.0.2",
"css": "^2.2.1",
"es6-shim": "^0.35.1",
"isomorphic-fetch": "^2.2.1",
"preboot": "^2.0.10",
"rxjs": "5.0.0-beta.6",
"webpack-externals-plugin": "^1.0.0",
"zone.js": "^0.6.12"
}
</code></pre>

<p>And this is my code:</p>

<pre><code>bootstrap(App, [
...HTTP_PROVIDERS,
FormBuilder,
AuthGuard,
AuthenticationService,
provideRouter(routes)
]);
</code></pre>

<p>And I get the error "Only instances of Provider and Type are allowed, got: [object Object]". WHat does that mean? Where is my error?</p>

<p>The error seems to be in provideRouter(routes) part.</p>

<pre><code>export const routes: RouterConfig = [
{ path: 'login', component: LoginComponent },
{ path: '', component: HomeComponent, canActivate: [AuthGuard] },
{ path: 'counter', component: Counter },
{ path: 'fetch-data', component: FetchData },
{ path: '**', redirectTo: '' }
];
</code></pre>

<p>This is the definition of the routes.</p>