Using Angular2, after moving in the project folder, I get in this error while trying create a new component via CLI, I'm going to post all terminal messages:
edoardocanti$ ng generate component other
Could not start watchman; falling back to NodeWatcher for file system
events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
installing component
create src/app/other/other.component.css
create src/app/other/other.component.html
create src/app/other/other.component.spec.ts
create src/app/other/other.component.ts
Cannot read property 'read' of undefined
TypeError: Cannot read property 'read' of undefined
at InsertChange.apply (/Users/edoardocanti/first-
app/node_modules/@angular-cli/ast-tools/src/change.js:96:20)
at /Users/edoardocanti/first-app/node_modules/@angular-cli/ast-
tools/src/change.js:71:61
at process._tickCallback (internal/process/next_tick.js:103:7)
It creates the folder of my new component but I have to add manually it in the app.module.ts, but however it works.
The real problem is when I try to create a new component inside an existing folder, in this case Angular doesn't create any new component.