-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
System
Windows 10 - 64bit
Versions
angular-cli:
1.0.0-beta.15
npm:
3.10.7
node:
6.6.0
angular's versions:
"@angular/common": "2.0.1",
"@angular/compiler": "2.0.1",
"@angular/core": "2.0.1",
"@angular/forms": "2.0.1",
"@angular/http": "2.0.1",
"@angular/material": "^2.0.0-alpha.9",
"@angular/platform-browser": "2.0.1",
"@angular/platform-browser-dynamic": "2.0.1",
"@angular/router": "3.0.0",
Repro steps.
I did change the defaults -> styleExt to "scss", so the angular would create the scss files for me, but I did not try creating anything before the change. I also did an installation of @anuglar/material package. The app was completely new (state right after 'ng new XXX'). Now I was trying to create the first component and it's creating it, but after creating a .ts file it shows me the error above.
The log given by the failure.
C:\SERVER\htdocs\MySite>ng g component sidenav
installing component
identical src\app\sidenav\sidenav.component.css
identical src\app\sidenav\sidenav.component.html
identical src\app\sidenav\sidenav.component.spec.ts
identical src\app\sidenav\sidenav.component.ts
Cannot read property 'read' of undefined
TypeError: Cannot read property 'read' of undefined
at InsertChange.apply (C:\SERVER\htdocs\MySite\node_modules\@angular-cli\ast-tools\src\change.js:96:20)
at C:\SERVER\htdocs\MySite\node_modules\@angular-cli\ast-tools\src\change.js:71:61
at process._tickCallback (internal/process/next_tick.js:103:7)