smart-home-dashboard
smart-home-dashboard copied to clipboard
Won't Build
While trying to build the client in the cloud shell. The following error is reported:
ERROR in : Can't bind to 'ng-show' since it isn't a known property of 'img'. ("gStyle]="{'background-color':device.updated ? 'green' : '#424242' }">
<img mat-list-avatar [ERROR ->]ng-show="{{device.giphyUrl}}" src="{{device.giphyUrl}}" alt="{{device.name}}">
<i mat-list-av")
: Can't bind to 'ng-show' since it isn't a known property of 'i'. ("giphyUrl}}" alt="{{device.name}}">
<i mat-list-avatar class="material-icons md-48 md-light" [ERROR ->]ng-show="{{!device.giphyUrl}}">{{device.icon}}</i>
<h3 mat-line class='device-name'>{{device.")
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build:
ng build --prod && cp -r ../appengine/* ../webapp/ npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/jeremy/.npm/_logs/2019-10-02T08_03_31_041Z-debug.log
Thanks for pointing this out! I'm working on a patch right now.
You can checkout 5dd830d9ece7256644364411e2525ec3342a8f3b
to get a version without the bug.
[ERROR ->]ng-show="{{device.giphyUrl}}"
change ng-show="{{device.giphyUrl}}"to *ngIf=device.giphyUrl it will work
<img mat-list-avatar *ngIf="device.giphyUrl" src="{{device.giphyUrl}}" alt="{{device.name}}"> <i mat-list-avatar class="material-icons md-48 md-light" *ngIf="!device.giphyUrl">{{device.icon}}