brandonroberts / angular-router-loader

A Webpack loader that enables string-based module loading with the Angular Router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR in Step1Module?loader=system

gorshkov-leonid opened this issue · comments

   "loaders": [
                    "angular-router-loader?sync=true&aot=true&genDir=compiled&debug=true",
                    "@ngtools/webpack"
    ]

After I used query parameters

{path: "step1", loadChildren: "./step1/step1.module#Step1Module?loader=system"},

, I got error: ERROR in Step1Module?loader=system is not an NgModule

This does not work too: {path: "step1", loadChildren: "./step1/step1.module#Step1Module?chunkName=Step1Module"},

Angula 4, Is it bug?

Ok, thank you. I thought that it can be related with problem https :// github.com/ angular/ angular/ issues/ 10958 and decide to answer.