-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Please provide us with the following information:
OS?
Windows 10.
Versions.
Please run
ng --version
. If there's nothing outputted, please run in a Terminal:node --version
and paste the result here:
@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.31]
node: 6.9.4
os: win32 x64
@angular/common: 2.4.7
@angular/compiler: 2.4.7
@angular/core: 2.4.7
@angular/forms: 2.4.7
@angular/http: 2.4.7
@angular/platform-browser: 2.4.7
@angular/platform-browser-dynamic: 2.4.7
@angular/router: 3.4.7
@angular/cli: 1.0.0-beta.32.3
@angular/compiler-cli: 2.4.7
Repro steps.
ng g component task-filter
The log given by the failure.
$ ng g component task-filter
installing component
create src\app\task\components\task-filter\task-filter.component.less
create src\app\task\components\task-filter\task-filter.component.html
create src\app\task\components\task-filter\task-filter.component.spec.ts
create src\app\task\components\task-filter\task-filter.component.ts
viewEncapsulation is not defined (Error in blueprint template: C:\repos\far-cli\node_modules@angular\cli\blueprints\component\files_path__name_.component.ts)
ReferenceError: viewEncapsulation is not defined (Error in blueprint template: C:\repos\far-cli\node_modules@angular\cli\blueprints\component\files_path__name_.component.ts)
at eval (eval at (C:\repos\far-cli\node_modules\lodash\template.js:224:12), :9:5)
at processTemplate (C:\repos\far-cli\node_modules@angular\cli\ember-cli\lib\models\file-info.js:20:36)
at C:\repos\far-cli\node_modules@angular\cli\ember-cli\lib\models\file-info.js:97:20
at tryCatch (C:\repos\far-cli\node_modules\rsvp\dist\rsvp.js:538:12)
at invokeCallback (C:\repos\far-cli\node_modules\rsvp\dist\rsvp.js:553:13)
at publish (C:\repos\far-cli\node_modules\rsvp\dist\rsvp.js:521:7)
at flush (C:\repos\far-cli\node_modules\rsvp\dist\rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Mention any other details that might be useful.
Worked previously, i also tried ng g component 'task-filter'
Thanks! We'll be in touch soon.