ng serve in Ivy mode is dropping directives list when editing a template
See original GitHub issue🐞 Bug report
Command (mark with an x
)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes, the previous version in which this bug was not present was: ....Yes. 8.0.0
Description
ng serve
(watch mode) seems to be outputting invalid generated code for a simple component when the template is edited.
🔬 Minimal Reproduction
git clone git@github.com:vikerman/ivy-proj.git cd ivy-proj
yarn installl
ng serve
<Edit src/app/app.component.html and add more !!! to Hello World>
The browser is refreshed but with the MatButton directive not applied.
🌍 Your Environment
Angular CLI: 8.2.0-next.0
Node: 10.15.3
OS: linux x64
Angular: 8.2.0-next.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.802.0-next.0
@angular-devkit/build-angular 0.802.0-next.0
@angular-devkit/build-optimizer 0.802.0-next.0
@angular-devkit/build-webpack 0.802.0-next.0
@angular-devkit/core 8.2.0-next.0
@angular-devkit/schematics 8.2.0-next.0
@angular/cdk 8.1.1
@angular/cli 8.2.0-next.0
@angular/material 8.1.1
@ngtools/webpack 8.2.0-next.0
@schematics/angular 8.2.0-next.0
@schematics/update 0.802.0-next.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:43 (15 by maintainers)
Top Results From Across the Web
Template type checking - Angular
In the most basic type-checking mode, with the fullTemplateTypeCheck flag set to ... Verifies that component/directive bindings are assignable to their ...
Read more >Angular 9 Support with Ivy in Kendo UI for Angular - Telerik
I am getting an error regarding Ivy Support after installing @progress/kendo-angular-menu, if I am already serving the app. To fix it I need...
Read more >Angular 9's Best Hidden Feature: Strict Template Checking
Find and report more errors than ever with Angular 9's Ivy compiler, strict template checking.
Read more >Speed Up Your Angular App - 14 Angular Optimization Tips
Here, we'll give 14 tips on how to make your Angular app smaller, faster, and more responsive.
Read more >Angular 12 in Depth - Sébastien Dubois
The Angular team has been working on Ivy (the new compilation ... compiler: not generating update instructions for ng-template inside ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@petebacondarwinI sent you an invitation to my private repo. Thanks!
The problem with the IVY incremental builds is still broken… we are working on a fix - see https://github.com/angular/angular/pull/31655, which fixes it but not the correct way.
@kolkov’s problem was not IVY related and was fixed in
@angular-devkit/build-angular@0.802.0-rc.0
as he reports by this commit: https://github.com/angular/angular-cli/commit/6649483d86a27abb1eb2392a612f4d1bdf7a8cfc