Skip to content

Migration to v8 breaks the routing modules #14551

@dushkostanoeski

Description

@dushkostanoeski

🐞 Bug report

Description

The migration messed up my routing modules. This is what the line was before the migration:

{
    path: 'Admin',
    loadChildren: './admin/admin.module#AdminModule',
    canActivate: [AdminGuard]
}

and this is what it looks like after the migration

{
    path: 'Admin',
    loadChildren: '() => import('./admin/admin.module').then(m => m.AdminModule)
    canActivate: [AdminGuard]
},

You can note the misplaced ' and the missing comma at the end of loadChildren

🔬 Minimal Reproduction

I am guessing this has something to do with #9712 because Visual Studio gave me a warning that the line ending in the file not consistent, something that was happening whit #9712 as well,

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions