Schema validation rejects *.json files in fileReplacements (Regression in 11.0.0 & 11.0.1) #19378
Closed
2 tasks done
Labels
area: @angular-devkit/build-angular
devkit/build-angular:browser
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 10.2.3Description
There are new changes in files
.\node_modules\@angular-devkit\build-angular\src\browser\schema.json
and.\node_modules\@angular-devkit\build-angular\src\server\schema.json
that restrict using *.json files infileReplacements
operations that were always available in previous versions.These *.json files are normally used as configuration settings in the same way as *.ts files for different environments with the advantage that they are more easily parsable as standard JSON in the different platforms than TS.
There are no reasons why the new restriction should exist, and it's also unclear why it was changed at all.
New changes are:
and previous functional version:
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: