Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

getting error while using other Schematics in this project #663

Open
sandgupta23 opened this issue Jan 12, 2019 · 3 comments
Open

getting error while using other Schematics in this project #663

sandgupta23 opened this issue Jan 12, 2019 · 3 comments

Comments

@sandgupta23
Copy link

sandgupta23 commented Jan 12, 2019

I ran following in this project and got error:

ng add @angular/material

Two or more projects are using identical roots. Unable to determine project using current working directory. Using default workspace project instead.
.
.
.

Schematic input does not validate against the Schema: {"project":null,"theme":"pink-bluegrey","gestures":false,"animations":false}
Errors:

  Data path ".project" should be string.

@JanMesaric
Copy link

JanMesaric commented Jan 28, 2019

Same issue is happening to me.

EDIT: there must be a problem in angular.json file, I was able to successfully run command after replacing the content of it with a content of angular.json from a freshly created project, installed, reverted back to original.

@dainbrump
Copy link

Ran into this issue myself. In my case it was because I first ran ng new my-project --create-application=false. I was just trying to build a quick project for experimentation. Taking out the create-application and simply going with --minimal gave me a lightweight initial app and cleared up the error.

@develvad
Copy link

add "defaultProject": "ng-universal-demo" to angular.json for solve it.

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

4 participants