Skip to content

UglifyJs Unexpected token: name (Time)  #6655

Closed
@alkuzman

Description

@alkuzman

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Building production using ng build --prod results with the following error:
ERROR in vendor.6524f61fda4d53a6f933.bundle.js from UglifyJs Unexpected token: name (Time) [vendor.6524f61fda4d53a6f933.bundle.js:18068,6]

I can't find Time in my project path, i think it is from some of the libraries i use.

Before i updated Angular, and Angular CLI
I used Angular 4.1.3 and Angular CLI 1.0.6 and I was getting similar error but insted of Time, unexpected token was PolicyMappings which was from pkijs

I also found Time class in pkijs

Versions.

@angular/cli: 1.1.1
node: 7.5.0
os: win32 x64
@angular/animations: 4.2.1
@angular/common: 4.2.1
@angular/compiler: 4.2.1
@angular/core: 4.2.1
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.2.1
@angular/http: 4.2.1
@angular/material: 2.0.0-beta.6-88089a7
@angular/platform-browser: 4.2.1
@angular/platform-browser-dynamic: 4.2.1
@angular/router: 4.2.1
@angular/cli: 1.1.1
@angular/compiler-cli: 4.2.1
@ngtools/webpack: 1.4.1

Repro steps.

npm install pkijs
npm install @types/pkijs
ng build --prod

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentseverity3: broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions