Useful or not, from you.
angular Template error: Can't bind to 'ngIf' since it isn't a known property of 'h1/ng-container/div'.

<!--๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…

Oh hi there! ๐Ÿ˜„

To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates.

๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…๐Ÿ”…-->

๐Ÿž bug report

Affected Package

<!-- Can you pin-point one or more @angular/* packages as the source of the bug? --> <!-- โœ๏ธedit: --> I guess it's the @angular-devkit/build-angular

Is this a regression?

<!-- Did this behavior use to work in the previous version? --> <!-- โœ๏ธ--> Yes, the previous version in which this bug was not present was: I guess somewhat around 8.1 or 8.2

Description

<!-- โœ๏ธ--> If I use structural directives (at least *ngIf and I also got this with the forms module) combined with ivy and ng server (yarn start) the app works (so it's not an issue with CommonModule not being imported or similar). Then you need to change a thing in the template (just add text somewhere) and when ng serve reloads then it can't find the directive. This get resolved again if you restart ng serve

๐Ÿ”ฌ Minimal Reproduction

<!-- Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-issue-repro2 --> <!-- โœ๏ธ--> https://github.com/cromefire/ngIf-issue

<!-- If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue. A good way to make a minimal reproduction is to create a new app via ng new repro-app and add the minimum possible code to show the problem. Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.

Issues that don't have enough info and can't be reproduced will be closed.

You can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-submitting-an-issue -->

๐Ÿ”ฅ Exception or Error

<!-- If the issue is accompanied by an exception or an error, please share it below: --> <!-- โœ๏ธ-->

Template error: Can't bind to 'ngIf' since it isn't a known property of 'h1'.

or

Template error: Can't bind to 'ngIf' since it isn't a known property of 'ng-container'.

or

Template error: Can't bind to 'ngIf' since it isn't a known property of 'div'.

๐ŸŒ Your Environment

Angular Version: <!-- run ng version and paste output below --> <!-- โœ๏ธ-->

Angular CLI: 8.3.3
Node: 12.10.0
OS: linux x64
Angular: 8.2.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.3
@angular-devkit/build-angular     0.803.3
@angular-devkit/build-optimizer   0.803.3
@angular-devkit/build-webpack     0.803.3
@angular-devkit/core              8.3.3
@angular-devkit/schematics        8.3.3
@angular/cli                      8.3.3
@ngtools/webpack                  8.3.3
@schematics/angular               8.3.3
@schematics/update                0.803.3
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2

Anything else relevant? <!-- โœ๏ธIs this a browser specific issue? If so, please specify the browser and version. -->

<!-- โœ๏ธDo any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->

Important:

  • ivy
  • ng serve
That's a useful answer
Without any help

Do components already have support for 9.0?