question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng build <project> --<some-flag> results in 'Unknown option: --<some-flag>'

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Node: v10.6.0 NPM: v6.1.0 CLI: v6.2.2 Mac OSX El Capitan (10.11.6)

Repro steps

I’ve just tested some flags like --delete-output-path, --output-path and --build-optimizer or --vendor-chunk. I know that it uses --prod implicitly and supports --watch since latest upgrade.

ng generate library my-lib ng build my-lib --delete-output-path=false

The log given by the failure

Unknown option: --deleteOutputPath

Desired functionality

The ng build command should provide the same functionality for libraries as for usual projects.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
arm1ncommented, Sep 19, 2018

@hansl As stated in the issue I’m using 6.2.2. @alan-agius4 If that’s the case then please update the docs, it reads as all flags are also supported for libraries. Despite that I think at least some flags should also work for library builds. Especially everything related to dist folder, as these flags were introduced to support valid use cases - f.e. hosting the compiled library on private git repos etc.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

target', Unknown option: '--environment'; while trying to build ...
ng build --prod is the default building command for production environment, no need to other parameters, only if there is sth specific you ......
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
Angular CLI — — Flags (Cheat Sheet) | by Pardeep Jain
So, After some R&D, I'll try to cover some flag. To open project automatically in a browser Tab. ng serve --o. OR ng...
Read more >
XProc: An XML Pipeline Language - W3C
The XInclude step reads the pipeline input “source” and produces a result ... be a QNameQName" or "the value of the some-flag option...
Read more >
https://downloads.asterisk.org/pub/telephony/aster...
2007-08-31 15:53 +0000 [r81406] Joshua Colp <jcolp@digium.com> * res/res_speech.c: Make it the engine's responsible to check for the presence of results.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found