-
Notifications
You must be signed in to change notification settings - Fork 12k
Build with --watch flag does not work with a lib project #11100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is not supported yet. I'm eagerly awaiting for this PR to be merged in ng-packagr. |
So they launch a new major version of the CLI breaking one of the commands? 😂 |
Any idea on when this might be available? We are doing a lot of work with libs at the moment, no ability to watch is really rough... |
This should become available in Angular-CLI v6.2
…On Wed, 25 Jul 2018 at 19:50, Jon ***@***.***> wrote:
Any idea on when this might be available? We are doing a lot of work with
libs at the moment, no ability to watch is really rough...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11100 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQv-WphapVqx1FHOJi4O854VwhtAljFjks5uKK_ogaJpZM4UYh58>
.
|
…brary `ng-packagr` version `4.0.0-rc.3`, lands the incremental builds feature. More info: https://github.com/dherges/ng-packagr/blob/master/CHANGELOG.md#400-rc2-2018-06-23 `enableResourceInlining` needs to be enabled for libraries that contain components Closes: #11100
I installed the latest 6.2.0 beta.0, but am still unable to do
Whats should I do? |
@bezysoftware you need to update all |
Thanks, that worked. Now first time compilation works, but the diff compilation fails:
I guess tha'ts worth a separate issue |
That is a known error, if you are trying to change a file that is not part
of the compilation.
ng-packagr/ng-packagr#1029
…On Thu, 02 Aug 2018 at 14:02, Tomas Bezouska ***@***.***> wrote:
Thanks, that worked. Now first time compilation works, but the diff
compilation fails:
File change detected. Starting incremental compilation...
BUILD ERROR
no elements in sequence
EmptyError: no elements in sequence
at new EmptyError (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\util\EmptyError.js:16:28)
at C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\operators\last.js:11:294
at Object.complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\operators\throwIfEmpty.js:12:23)
at TapSubscriber._complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\operators\tap.js:76:31)
at TapSubscriber.Subscriber.complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\Subscriber.js:76:18)
at TakeLastSubscriber._complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\operators\takeLast.js:71:21)
at TakeLastSubscriber.Subscriber.complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\Subscriber.js:76:18)
at MergeMapSubscriber._complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\operators\mergeMap.js:80:30)
at MergeMapSubscriber.Subscriber.complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\Subscriber.js:76:18)
at FilterSubscriber.Subscriber._complete (C:\Users\**\projects\Nexus\WidgetMessaging\node_modules\rxjs\internal\Subscriber.js:94:26)
Compilation failed. Watching for file changes...
I guess tha'ts worth a separate issue
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11100 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQv-WgG0lBcWgK2CNHRQeZ55Fq1-AJNoks5uMupmgaJpZM4UYh58>
.
|
Hi @bezysoftware @alan-agius4 ! |
You can use
|
Watch mode works for these versions :) sweet! |
It's working for me with:
However, if I make any changes in the lib, it reloads the page twice. |
Although it's working for |
@arm1n I can confirm it for Angular CLI 7.0.4. Althought I didn't extensively check, it seems the only working flags are those few reported by the ng build --help command, not those described in documentation page: https://angular.io/cli/build |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Observed behavior
Running
ng build --watch
works perfectly fine on the default app in a monorepo with the default app.However, running
ng build mylib --watch
orng build --watch mylib
after generating a lib with the CLI givesUnknown option: '--watch'
Desired behavior
Can build any of the apps or libs in an Angular cli monorepo in --watch mode.
Mention any other details that might be useful (optional)
Have tried various combinations of ordering the arguments as well as
--watch=true
and-w
. None seem to work.The text was updated successfully, but these errors were encountered: