Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 4 Generate Component error

Tags:

angular

I am new in angular 4. I am trying to create new Component using angular CLI.

command : ng generate component myFolder/newComponent

But I am getting below error: 

Error: tree.branch is not a function
tree.branch is not a function.
like image 349
Swapnil Yeole Avatar asked Sep 17 '26 07:09

Swapnil Yeole


1 Answers

It probably comes from your angular-cli installation/version. Try to uninstall/re-install it :

Re-install generally

npm uninstall -g @angular/cli
npm install -g @angular/cli

Re-install for a local project :

npm uninstall --save @angular/cli
npm install --save @angular/cli
like image 98
Boulboulouboule Avatar answered Sep 19 '26 01:09

Boulboulouboule



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!