Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.
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

@Frey-Fu

Description

@Frey-Fu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions