Search code examples
angular-cliangular12

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.


Solution

  • 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"
        }
      }
    }