Cannot build Angular Application with buildable library dependecies and --baseHref (or many other commands)
See original GitHub issueCurrent Behavior
After creating an Angular Application and some buildable libraries I cannot build using some available commands from the build UI in NX Console (or directly from cmd line). I am able to build --withDeps using no other flags but I must use some more. I tried building with aot, baseHref, and buildOptimizer and received the error “Unkown option” for each one.
Expected Behavior
I expected to be able to build --withDeps and use the flags required to build my Angular Applications. I have not had it work in the past, but that doesn’t mean I’m not doing anything wrong.
Steps to Reproduce
Generate workspace, add application, add buildable library, run nx run project:build --withDeps --baseHref=/Studio/.
I can reproduce this without any code changes in nx-examples. Pull down the repo, npm install, and run this command: ng build products --with-deps --baseHref=/Studio/
Failure Logs
> Executing task: ng build products --with-deps --baseHref=/Studio/ <
Unknown option: '--with-deps'
Environment
nx : Not Found @nrwl/angular : 10.3.1 @nrwl/cli : 10.3.1 @nrwl/cypress : 10.3.1 @nrwl/eslint-plugin-nx : Not Found @nrwl/express : Not Found @nrwl/jest : 10.3.1 @nrwl/linter : 10.3.1 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/react : Not Found @nrwl/schematics : Not Found @nrwl/tao : Not Found @nrwl/web : Not Found @nrwl/workspace : 10.3.1 typescript : 4.0.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
@vsavkin Any update on the PR?
We need to build a project --with-deps with the --base-href and it fails. The problem is that we can’t configure baseHref in angular.json since the baseHref is not fixed (depends on branch name and it’s specified in our CI environment)
Wait one, I realized that nx-examples doesn’t use buildable libraries. I’ll update soon. update I can’t push a branch right now but I’m hoping my description is good enough. 😃 Thanks!