Closed
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
<17
Description
Using an absolute path with ng build in --output-path throws an error, the build command appears to append the source folder to the folder provided in the --output-path. Using a relative path on the other hand works.
Minimal Reproduction
ng build --configuration production --output-path="D:\builds\myapp"
Exception or Error
An unhandled exception occurred: ENOENT: no such file or directory, mkdir 'D:\Source.App\D:\builds\myapp\browser'
Your Environment
Angular CLI: 17.1.0
Node: 20.9.0
Package Manager: npm 10.1.0
OS: win32 x64
Angular: 17.0.5
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1700.5
@angular-devkit/build-angular 17.0.5
@angular-devkit/core 17.0.5
@angular-devkit/schematics 17.1.0
@angular/cdk 17.0.1
@angular/cli 17.1.0
@angular/fire 17.0.0
@angular/material 17.0.1
@schematics/angular 17.1.0
rxjs 7.8.1
typescript 5.2.2
zone.js 0.14.2
Anything else relevant?
No response