-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
🐞 bug report
Is this a regression?
Yes, the previous version in which this bug was not present was: 9.1.11Description
angular.json fragment:
...
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
]
}
},
"development": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
],
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "40kb"
}
]
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "multiple-env2:build"
},
"configurations": {
"production": {
"browserTarget": "multiple-env2:build:production"
},
"development": {
"browserTarget": "multiple-env2:build:development"
}
}
},
...
🔬 Minimal Reproduction
ng serve -c=development
🔥 Exception or Error
An unhandled exception occurred: Configuration 'development' is not set in the workspace.
🌍 Your Environment
Angular Version:
Angular CLI: 10.0.5
Node: 14.7.0
OS: win32 x64
Angular: 10.0.7
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.1000.5
@angular-devkit/build-angular 0.1000.5
@angular-devkit/build-optimizer 0.1000.5
@angular-devkit/build-webpack 0.1000.5
@angular-devkit/core 10.0.5
@angular-devkit/schematics 10.0.5
@angular/cli 10.0.5
@ngtools/webpack 10.0.5
@schematics/angular 10.0.5
@schematics/update 0.1000.5
rxjs 6.5.5
typescript 3.9.7
webpack 4.43.0