Skip to content

Angular Cli 1.0.0-beta.11-webpack.8: ng build failed if route 'loadChildren' #1891

@cuiliang

Description

@cuiliang

https://github.com/angular/angular-cli/blob/master/addon/ng2/models/find-lazy-modules.ts#L38

.map((node: ts.PropertyAssignment) => {
        return JSON.parse(node.initializer.getText(source)); // tslint:disable-line
      });

JSON.parse failed with :

loadChildren:'app/+workspace/+settings/settings.module#SettingsModule'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions