akveo / akveo/ngx-admin

Error in ng build --prod | Property is {} so missing.

オープン
#5,559 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
needs triage
主要言語
TypeScript
スター
25.7k
フォーク
7.9k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Issue in production build

- Error statement
1. **Property `'color'` does not exist on type `'{}'`.**
2. **Property `'d'` does not exist on type `'{}'`.**

* [x] bug report

### Issue description
- Angular `ng` not able to build with `prod` argument.

**Related code:**

In `temperature-dragger.component.ts` file
```typescript
styles = {
viewBox: '0 0 300 300',
arcTranslateStr: 'translate(0, 0)',
clipPathStr: '',
gradArcs: [],
nonSelectedArc: {},
thumbPosition: { x: 0, y: 0 },
blurRadius: 15,
};
```
It needs to be
```typescript
angle = this.bottomAngleRad / 2 + (1 - this.getValuePercentage()) * (2 * Math.PI - this.bottomAngleRad);
styles = {
viewBox: '0 0 300 300',
arcTranslateStr: 'translate(0, 0)',
clipPathStr: '',
gradArcs: [],
nonSelectedArc:{
color: this.disableArcColor,
d: `M ${this.radius},${this.radius}
L ${this.radius},${3 * this.radius}
A ${2 * this.radius},${2 * this.radius}
1 ${this.angle > Math.PI ? '1' : '0'} 0
${this.radius + this.radius * 2 * Math.sin(this.angle)},${this.radius + this.radius * 2 * Math.cos(this.angle)}
Z`,
},
thumbPosition: { x: 0, y: 0 },
blurRadius: 15,
};
```

### Other information:

Node, npm: `v12.13.0.` and `6.12.0`
OS: Windows (10)

**Angular, Nebular**

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。