shlomiassaf / ng-router-loader

Webpack loader for NgModule lazy loading using the angular router
MIT License
46 stars 8 forks source link

Invalid code generator "async-import" #14

Closed splincode closed 7 years ago

splincode commented 7 years ago

app.routes.ts

export const ROUTES: Routes = [
    {path: '', loadChildren: './modules/+home/home.module#HomeModule'}
];

ERROR in ./webapp/source/app/app.routes.ts
Module build failed: Error: ng-router-loader - Invalid code generator "async-import"
    at Loader.replaceSource (/home/splincode/Develop/blackbox/ui-util/node_modules/src/Loader.ts:104:29)
    at Loader.replace (/home/splincode/Develop/blackbox/ui-util/node_modules/src/Loader.ts:66:22)
    at Object.loader (/home/splincode/Develop/blackbox/ui-util/node_modules/index.ts:12:5)
 @ ./webapp/source/app/app.module.ts 14:0-38
 @ ./webapp/source/main.ts
shlomiassaf commented 7 years ago

No enough information.

Works in test.

Make sure your have the right version.