Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kamprasad opened this issue Jan 24, 2018 · 2 comments
Closed

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

kamprasad opened this issue Jan 24, 2018 · 2 comments

Comments

@kamprasad
Copy link

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?

@filipesilva
Copy link
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.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants