smart-home-dashboard icon indicating copy to clipboard operation
smart-home-dashboard copied to clipboard

Won't Build

Open fabltd opened this issue 5 years ago • 4 comments

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

fabltd avatar Oct 02 '19 08:10 fabltd

Thanks for pointing this out! I'm working on a patch right now.

Fleker avatar Oct 02 '19 14:10 Fleker

You can checkout 5dd830d9ece7256644364411e2525ec3342a8f3b to get a version without the bug.

Fleker avatar Oct 02 '19 14:10 Fleker

[ERROR ->]ng-show="{{device.giphyUrl}}"

change ng-show="{{device.giphyUrl}}"to *ngIf=device.giphyUrl it will work

raju102 avatar Oct 21 '19 07:10 raju102

<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}}

{{device.name}} ({{device.nicknames.join(',')}}) ({{device.id}})

raju102 avatar Oct 21 '19 07:10 raju102