-
Notifications
You must be signed in to change notification settings - Fork 11.9k
ng cli adding component breaks app.module.ts #7851
Copy link
Copy link
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentneeds: investigationRequires some digging to determine if action is neededRequires some digging to determine if action is needed
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentneeds: investigationRequires some digging to determine if action is neededRequires some digging to determine if action is needed
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Report or Feature Request (mark with an
x)Versions.
@angular/cli: 1.4.1
node: 8.5.0
os: darwin x64
@angular/animations: 4.3.6
@angular/cdk: 2.0.0-beta.10
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/material: 2.0.0-beta.10
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.1
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
typescript: 2.3.4
Repro steps.
From base of angular app:
$ ng g c loginDetails
Adds the sub folder but breaks the app.module.ts
The log given by the failure.
Failed to compile.
/Users/richardbown/xyglo-device-control/src/app/app.module.ts (32,37): Unterminated string literal.
Desired functionality.
Adds component correctly. Also not generated index.ts - is this a requirement?