[英]property 'update' does not exist on type '{}'
I'm into a starter AngularCli project which require Gauge chart. 我进入了需要量规表的入门AngularCli项目。 For this I've used the code from https://stackblitz.com/edit/angular-tjk9sl?file=app%2Fapp.component.ts
为此,我使用了https://stackblitz.com/edit/angular-tjk9sl?file=app%2Fapp.component.ts中的代码
On ng serve --open
, it shows error in the terminal as 在
ng serve --open
,它在终端中显示错误为
ERROR in src/app/gauge/gauge.component.ts(100,21): error TS2339: Property 'configure' does not exist on type '{}'.
src / app / gauge / gauge.component.ts(100,21)中的错误:错误TS2339:类型“ {}”上不存在属性“ configure”。 src/app/gauge/gauge.component.ts(109,21): error TS2339: Property 'isRendered' does not exist on type '{}'.
src / app / gauge / gauge.component.ts(109,21):错误TS2339:类型“ {}”上不存在属性“ isRendered”。 src/app/gauge/gauge.component.ts(161,21): error TS2339: Property 'render' does not exist on type '{}'.
src / app / gauge / gauge.component.ts(161,21):错误TS2339:类型“ {}”上不存在属性“ render”。 src/app/gauge/gauge.component.ts(173,21): error TS2339: Property 'update' does not exist on type '{}'.
src / app / gauge / gauge.component.ts(173,21):错误TS2339:类型“ {}”上不存在属性“ update”。 src/app/gauge/gauge.component.ts(188,16): error TS2339: Property 'render' does not exist on type '{}'.
src / app / gauge / gauge.component.ts(188,16):错误TS2339:类型“ {}”上不存在属性“ render”。
and the browser output like, 和浏览器输出,
Cannot GET /
不能获取 /
Please help me to solve this. 请帮我解决这个问题。 Thanks in advance.
提前致谢。
The type of gaugemap
is now {}
and as you see it has nothing in it. gaugemap
的类型现在为{}
,并且您看到的其中没有任何内容。 Set the type for gaugemap
to any
for passing compiler 将
gaugemap
的类型设置为any
要传递的编译器
gaugemap: any = {}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.