Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

EXCEPTION: Uncaught (in promise): Error: No provider for Token AC_WEBPACK_ASYNC_MAP! #10

Open
Frey-Fu opened this issue Sep 29, 2016 · 0 comments

Comments

@Frey-Fu
Copy link

Frey-Fu commented Sep 29, 2016

Hi, I'm currently using upgrading from rc4 to angular-2.0.1, and my code with angular-2.0.1 is like this:

import { WebpackAsyncRoute,WebpackAsyncModules } from '@angularclass/webpack-toolkit'; @NgModule({ imports: [ ... ], declarations: [ ... ], providers: [ ... WebpackAsyncRoute, WebpackAsyncModules, ], bootstrap: [App], })
and the route is like this:
import { WebpackAsyncRoute } from '@angularclass/webpack-toolkit'; export const routes: Routes = [ {path: '', component: LoginComponent}, {path: 'home', component: IndexComponent, canActivate: [WebpackAsyncRoute], children: [ {path: 'overview', component: OverviewComponent, canActivate: [LoggedInGuard] }, // must be included ... ]}, {path: '**', redirectTo: '', pathMatch: 'full'}, ];

While I logged in I will receive an error in title, I see the toolkit already supports rc6 with the latest change, so how did you use WebpackAsyncRoute in your code? Please advice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant