Skip to content

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

Closed

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?

Activity

  1. filipesilva commented on Jan 25, 2018

    @filipesilva
    Contributor

    You're using a very old version of Angular CLI. Updating to the latest version should fix that problem.

    The original issue for it is #7532, and it was fixed by #7610.

  2. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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