Skip to content

Angular CLI Build Failed with Unexpected token: operator (>)  #9353

Closed
@kamprasad

Description

@kamprasad

Versions

angular/cli : 1.0.3
node : 6.11.1
os : win32 x64

Repro steps

When executing ng build -aot false -prod it gives following error.

Observed behavior

> ERROR in vendor.394aa10abde0566efdcb.bundle.js from UglifyJs
> Unexpected token: operator (>) [vendor.394aa10abde0566efdcb.bundle.js:56810,35]

Desired behavior

After investigation found out that source-map V0.7.0 is the issue and when downgrade to 0.6.1 it works as expected. Anyone faced this issue?

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