Property 'series' does not exist on type 'Object'
See original GitHub issueI’m following this example to create a dynamic chart but I’m having the error above.
Here’s what I’m trying to do:
this.service
.getData()
.then(res => {
this.chart.series[0].setData(this.chartData(res));
})
.catch(error => this.error = error);
Any hints on what I’m missing here?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Typescript : Property does not exist on type 'object'
I am using JSforce and trying to use "search" function on the object but it is throwing "Property 'search' does not exist on...
Read more >Property does not exist on type Object in TypeScript
The "Property does not exist on type Object" error occurs when we try to access a property that is not contained in the...
Read more >Fix - Property does not exist on type '{}' in TypeScript
The error property does not exist on type '{}' in TypeScript occurs when you access non existing object property and it can be...
Read more >Property does not exist on type 'unknown'. : r/typescript
The error is telling you that you have a value of type unknown , but you are trying to assign it to a...
Read more >Property series does not exist on type
Re: Property series does not exist on type ... Hi, Thanks for contacting us! If you use TypeScript, some properties are not added...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Declaring
chart: any;worked for me.@wceolin @istiti you can try to define
chart;instead ofchart: Object;I think Object of chart has no series property that’y error.