Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 12 Data path "" must NOT have additional properties (styleext)

What is wrong with the new version of Angular? Angular CLI 12.0.1 can't create new application. Tried to run ng new twelveApp and the cli complains dying Data path "" must NOT have additional properties (styleext).

I have tried to set the ng-new schema additionalProperties to true but the error remains.

How to get rid of this additional property?

PS: back to @angular/[email protected] everything works quite perfectly.

like image 934
Bellash Avatar asked May 24 '21 01:05

Bellash


People also ask

Can the data path have additional properties?

Sign in to your account Data path "" must NOT have additional properties (skipTests). Angular 12.0.0 #20811 Data path "" must NOT have additional properties (skipTests).

What are the errors after migration from Angular 5 to 6?

After migrating application from angular 5 to 6, on running ng serve the following errors pop up. Schema validation failed with the following errors: Data path "" should NOT have additional properties (project).

How to resolve data path “should not have additional properties (extracts)” error?

After a successful upgrade, while preparing a build, it gives the following error. Data path "should NOT have additional properties (extracts). Option 1. Just remove the "extractCss": true from your production environment, it will resolve the problem. The reason for it is extractCss is deprecated, and its value is true by default.

Can the data path have additional properties like skiptests?

Sign in to your account Data path "" must NOT have additional properties (skipTests). Angular 12.0.0 #20811 Data path "" must NOT have additional properties (skipTests). Angular 12.0.0 #20811 Is this a regression?


3 Answers

Try to change

  "schematics": {
    "@schematics/angular:component": {
      "styleext": "scss"
    }
  },

to

  "schematics": {
    "@schematics/angular:component": {
      "style": "scss"
    }
  },

In angular.json. Let me know if this works.

like image 153
QuanDar Avatar answered Oct 21 '22 19:10

QuanDar


Based on the answer to this issue, I edited .angular-config.json file in my home directory and removed the schematics section as shown below. Your particular case might require a variation of this solution.

{
  "schematics": {
    "@schematics/angular:component": {
      "styleext": "scss"
    }
  }
}
like image 31
mhusaini Avatar answered Oct 21 '22 20:10

mhusaini


styleext has been renamed to only style a while ago (see Farhans answer above), so maybe that's your issue

like image 10
Dominik Ehrenberg Avatar answered Oct 21 '22 20:10

Dominik Ehrenberg