question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Property 'series' does not exist on type 'Object'

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
alx-andrucommented, Dec 11, 2016

Declaring chart: any; worked for me.

2reactions
keepscodingcommented, Dec 11, 2016

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found