Skip to content

Could not resolve route  #3623

@aep

Description

@aep

angular-cli: 1.0.0-beta.22-1
node: 7.1.0
os: linux x64

i'm new to angular2 and not sure how loadChildren is supposed to work.
I upgraded coreui from angular 2.1.2 to 2.2.3 and it broke here:

Could not resolve route "app/dashboard/dashboard.module#DashboardModule" from file 
"/home/aep/kram/CoreUI-Free-Bootstrap-Admin-
Template/Angular2_CLI_Full_Project/src/app/app.module".
        children: [
            {
                path: 'dashboard',
                loadChildren: 'app/dashboard/dashboard.module#DashboardModule'
            },

what's the path supposed to be with this relative structure?

src/app/app.module.ts
src/app/dashboard/dashboard.module.ts

i tried:

  • app/dashboard/dashboard.module#DashboardModule
  • dashboard/dashboard.module#DashboardModule
  • ../app/dashboard/dashboard.module#DashboardModule
  • ../../dashboard/dashboard.module#DashboardModule
  • src/app/dashboard/dashboard.module#DashboardModule

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