Unclear error message when no builder is configured #29226
Labels
area: @angular-devkit/architect
freq1: low
Only reported by a handful of users who observe it rarely
good first issue
severity3: broken
type: bug/fix
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When no builder is configured in
angular.json
, the provided error message is unhelpful in determining the issue.It would be nice if the CLI detected that no builder was defined and reported that error.
Suggestion: “You have not specified a builder with which to compile the project. Please add one in 'angular.json' under the key 'projects.project.architect.target.builder'”
Minimal Reproduction
ng new ang
and accept the default optionscd ang
angular.json
and remove the keyprojects.ang.architect.build.builder
ng build
Exception or Error
The mentioned file contains
Your Environment
Tested in all of these:
Anything else relevant?
no response
The text was updated successfully, but these errors were encountered: