Can't bind to 'ngIf' since it isn't a known property of 'div' in production build

前端 未结 5 1137
离开以前
离开以前 2021-01-13 03:11

I can able to run through locally. Getting error only in production build.

I have used

 import { CommonModule } from \'@angular/common\';
 imports:           


        
5条回答
  •  臣服心动
    2021-01-13 03:20

    Other solution if none of the above works is just to restart your ng serve, that worked for me. Or maybe try this method first before pulling your hairs out.

提交回复
热议问题