Reputation: 9903
I am using Angular
with nx
and when I try to nx serve todos
I get this error:
Project extension with invalid name found
And my project name is: todos
.
I followed this https://nx.dev/angular-tutorial/01-create-application to create todos
app with Angular 14.0.5
and I get the above error.
Does someone have any idea regarding this error?
Upvotes: 9
Views: 25665
Reputation: 51
Got this error when my project configuration was off. Make sure all the commands (build,server,test) are within "target" object in project.json
/ angular.json
.
Upvotes: 0
Reputation: 909
I got this too. The problem in my case was that I positioned a property in the project.json on a wrong position. I had the lint target outside the targets on the root level. When positioning it correctly inside the targets object then there was no message anymore.
Upvotes: 1
Reputation: 638
When I have ran this command npm run affected:test --code-coverage
I got below warning :
Project 'user-journey' contains extension with invalid name (tags).
For fixing this warning, I have removed below line from nx.json / angular.json
"defaultProject": "web-shell",
Key defaultProject has been deprecated.
Please refer this link : https://github.com/angular/angular-cli/issues/11111
Upvotes: 1
Reputation: 9903
There is a git issue (see this) regarding to this problem. It's something that started to appear in Angular CLI v14.0.6
.
Based on the git issue they are currently working on that to solve the problem but the most important thing is that: it doesn't really cause any issues apart from the noisy logs.
Upvotes: 10
Reputation: 37
I was facing the same issue with angular nx
and I looked for solution and found a git issue describing the same problem and there it was written that "When starting the Angular app with nx
run portal:serve:development
the project compiles successfully, though there is some noisy logging. This is a known issue with Nx
with the newest version of Angular. It is said to be harmless.
nrwl/nx#11138
As the known issue is harmless I think there is no need to worry about this issue.
I am attaching the git page link below: https://github.com/ZenSoftware/zen/issues/21
Upvotes: 1