本文介绍了类型"{}"上不存在属性“更新"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进入了需要Gauge图表的入门AngularCli项目.为此,我使用了 https://stackblitz.com/edit/angular-tjk9sl?file = app%2Fapp.component.ts

I'm into a starter AngularCli project which require Gauge chart.For this I've used the code fromhttps://stackblitz.com/edit/angular-tjk9sl?file=app%2Fapp.component.ts

ng服务--open 上,它在终端中显示错误为

On ng serve --open, it shows error in the terminal as

和浏览器输出类似,

请帮助我解决此问题.预先感谢.

Please help me to solve this.Thanks in advance.

推荐答案

gaugemap 的类型现在为 {} ,如您所见.将 gaugemap 的类型设置为 any 以传递编译器

The type of gaugemap is now {} and as you see it has nothing in it. Set the type for gaugemap to any for passing compiler

gaugemap: any = {}

这篇关于类型"{}"上不存在属性“更新"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-27 21:41