Skip to content

Error: tree.branch is not a function #8253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
plambhsa opened this issue Oct 30, 2017 · 4 comments
Closed

Error: tree.branch is not a function #8253

plambhsa opened this issue Oct 30, 2017 · 4 comments

Comments

@plambhsa
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.9
node: 8.4.0
os: darwin x64

Repro steps.

ng new project-name

The log given by the failure.

Error: tree.branch is not a function
tree.branch is not a function

Desired functionality.

Obviously, I would like it to create the new project

Mention any other details that might be useful.

I had this issue in the middle of last week, but restarting my terminal and starting a new session seemed to fix it. But it's not working again. I've uninstalled the CLI globally and reinstalled it, tried different versions, etc, and nothing seems to work. CLI functionality works in existing projects (like generating a module or component) but not when creating a new project. I have no idea where to go from here. I've looked at all the similar issues that I could find and none of the potential solutions have worked.

@Splaktar
Copy link
Contributor

Splaktar commented Nov 1, 2017

This happens when it can't find @angular-devkit/schematics which seems to happen in some strange cases, often related to environment and configuration.

@Splaktar
Copy link
Contributor

Splaktar commented Nov 1, 2017

This is a duplicate of #8167. Please search before posting a new issue.

@filipesilva
Copy link
Contributor

Closing as duplicate of #8167, thanks @Splaktar 👍

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants