🐞 Bug report
Command (mark with an x)
Is this a regression?
Yes, the previous version in which this bug was not present was: ....
No.
Description
A clear and concise description of the problem...
🔬 Minimal Reproduction
- Create a blank project
- Import and Add CommonModule to the imports of the module:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { CommonModule } from '@angular/common';
import { FormsModule } from "@angular/forms";
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
CommonModule
],
providers: [
],
bootstrap: [AppComponent]
})
export class AppModule { }
- Use *ngIf in a component:
<div class="alert alert-secondary" *ngIf="message">
{{ message}}
</div>
ERROR Error: "Template error: Can't bind to 'ngIf' since it isn't a known property of 'div'."
- Stop the build and re-run it with identical parameters (ng build --watch=true --prod=false
- Watch it work again (no code changes)
🔥 Exception or Error
ERROR Error: "Template error: Can't bind to 'ngIf' since it isn't a known property of 'div'."
Angular 3
AppComponent_Template app.component.html:4
Angular 32
ts main.ts:11
Webpack 6
core.js:6014:19
Angular 29
ts main.ts:11
Webpack 6
🌍 Your Environment
Angular CLI: 8.3.22
Node: 13.0.1
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.803.22
@angular-devkit/build-angular 0.803.22
@angular-devkit/build-optimizer 0.803.22
@angular-devkit/build-webpack 0.803.22
@angular-devkit/core 8.3.22
@angular-devkit/schematics 8.3.22
@angular/cli 8.3.22
@ngtools/webpack 8.3.22
@schematics/angular 8.3.22
@schematics/update 0.803.22
rxjs 6.4.0
typescript 3.5.3
webpack 4.39.2
Anything else relevant?
🐞 Bug report
Command (mark with an
x)Is this a regression?
Yes, the previous version in which this bug was not present was: ....No.
Description
A clear and concise description of the problem...🔬 Minimal Reproduction
Run ng build --watch=true --prod=false
See it work.
make any change to the project
Watch it fail with:
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?