Skip to content

ng build --aot --prod generates ESC character in vendor #6155

@robindijkhof

Description

@robindijkhof

Bug Report or Feature Request (mark with an x)

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

Versions.

@angular/cli: 1.0.0
node: 6.10.2
os: win32 x64
@angular/common: 4.1.0
@angular/compiler: 4.1.0
@angular/core: 4.1.0
@angular/forms: 4.1.0
@angular/http: 4.1.0
@angular/platform-browser: 4.1.0
@angular/platform-browser-dynamic: 4.1.0
@angular/router: 4.1.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.1.0

Repro steps.

Create a new project with the cli
run ng build --aot --prod
check the vendor file.
Easiest way is to open the file in notepad++. Press ALT + 027 to insert the ESC char. Ctrl + C to copy and Ctrl + F to find it.

The log given by the failure.

No angular crashlog. Crashlog from IBM WebSphere.
Illegal character [0x001b] found at offset [some hex value] in file [vendor.**.bundle.js]

Desired functionality.

Don't generate the ESC char but ESC as string.

Mention any other details that might be useful.

Also happend with cli 1.0.1
I added my generated vendor. Check line 529 col 10548.
https://www.dropbox.com/s/d80zz1fpxy8xho4/vendor.8b1206c372ceef779894.bundle.js?dl=0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions