nx build with --deleteOutputPath causes "Unknown option: '--deleteOutputPath'" #4015
Labels
community
This is a good first issue for contributing
outdated
scope: react
Issues related to React support for Nx
type: bug
Current Behavior
running
nx build <project_name> --deleteOutputPath=false
causes the following error from Angular CLI:Unknown option: '--deleteOutputPath'
I have tried to create a ticket regarding this in Angular Github: angular/angular-cli#19283 . But they told me this is an NX issue.
Expected Behavior
The build should run.
In version 9 of the whole environment
deleteOutputPath
wasfalse
by default, so it wasn't needed to build with this parameter. Since Angular 10deleteOutputPath
istrue
by default. We need to preserve an output path because we sometimes have an extra step copying some resources to it before the build.Steps to Reproduce
The problem can be reproduced on https://github.com/nrwl/nx-examples:
npm install
nx build cart --deleteOutputPath=false
Environment
The text was updated successfully, but these errors were encountered: