Angular CLI: 1.7.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cdk: 5.2.4
@angular/cli: 1.7.3
@angular/material: 5.2.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
ng generate component TestUnicode
Versions
Repro steps
Insert Unicode strings (let's say Chinese) as comments before
importblock;Run any generate command, such as:
Open
app.module.ts, you will find Angular-CLI inserted the new import phrase at wrong location instead of appending it at the end ofimportblock;Remove Unicode commend, the Earth rotates again.
Observed behavior
Desired behavior
app.module.tsin the future.Mention any other details that might be useful (optional)