You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ng build fails when using an absolute path in --output-path #26935
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'
Activity
clydin commentedon Jan 23, 2024
Duplicate of #26900
paulflo150 commentedon Jan 26, 2024
@clydin, this does not appear to be the same issue because I am using 17.1.1 and the problem persists.
`Angular CLI: 17.1.1
Node: 20.9.0
Package Manager: npm 10.1.0
OS: win32 x64
Angular: 17.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1701.1
@angular-devkit/build-angular 17.1.1
@angular-devkit/core 17.1.1
@angular-devkit/schematics 17.1.1
@angular/cdk 17.1.0
@angular/fire 17.0.1
@angular/material 17.1.0
@schematics/angular 17.1.1
rxjs 7.8.1
typescript 5.2.2
zone.js 0.14.2
ng build --configuration production --output-path="D:\builds\app"`
An unhandled exception occurred: ENOENT: no such file or directory, mkdir 'D:\_Source.APP\D:\builds\app\browser'fix(@angular-devkit/build-angular): resolve absolute `output-path` wh…
fix(@angular-devkit/build-angular): resolve absolute `output-path` wh…
fix(@angular-devkit/build-angular): resolve absolute `output-path` wh…
fix(@angular-devkit/build-angular): resolve absolute `output-path` wh…
angular-automatic-lock-bot commentedon Feb 26, 2024
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.