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.

TypeError: can't assign to property "color" on "Array": not an object

See original GitHub issue

We are using Grafana 6.4.2 and Piechart 1.3.9. Table type for the same query works fine but Piechart shows error:

Unable to find application file
Grafana has likely been updated. Please try reloading the page.
TypeError: can't assign to property "color" on "Array": not an object

    in t
    in div
    in div
    in r
    in l
    in div
    in div
    in div
    in t
    in t
    in div
    in t
    in t
    in div
    in div
    in t
    in Connect(t)
    in div
    in t
    in div
    in e
    in DraggableCore
    in e
    in div
    in ReactGridLayout
    in Unknown
    in SizeMeReferenceWrapper
    in SizeMeRenderer(Component)
    in SizeMe(Component)
    in e
    in div
    in div
    in div
    in t
    in t
    in div
    in div
    in e
    in Connect(e)
    in Suspense
    in t
    in Unknown
    in d
    in Unknown
    in Unknown
    in t
    in t
    in a

This is chart default settings. I have looked into https://github.com/grafana/grafana/issues/19583 but it should be fixed in 6.4.2 and looks like this is not the same?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
brianganncommented, Oct 11, 2019

taking a look

1reaction
stevepro-labcommented, Oct 11, 2019

If It help, I get below error

TypeError: this.datapoints is undefined

    in t
    in div
    in div
    in r
    in l
    in div
    in div
    in div
    in t
    in t
    in div
    in t
    in t
    in div
    in div
    in t
    in Connect(t)
    in div
    in t
    in div
    in e
    in DraggableCore
    in e
    in div
    in ReactGridLayout
    in Unknown
    in SizeMeReferenceWrapper
    in SizeMeRenderer(Component)
    in SizeMe(Component)
    in e
    in div
    in div
    in div
    in t
    in t
    in div
    in div
    in e
    in Connect(e)
    in Suspense
    in t
    in Unknown
    in d
    in Unknown
    in Unknown
    in t
    in t
    in a
Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: can't assign to property "x" on "y": not an object
The problem might be that an unexpected value is flowing at an unexpected place, or that an object variant of a String or...
Read more >
JavaScript TypeError - Can't assign to property "X" on "Y"
JavaScript TypeError – Can't assign to property “X” on “Y”: not an object ... This JavaScript exception can't assign to property occurs in...
Read more >
Cannot assign to read only property 'name' of object '[object ...
Most likely you're using readonly object that can't be edited. Use cloneDeep from lodash.
Read more >
Cannot assign to read only property of Object in JavaScript
The error "Cannot assign to read only property of object" occurs when we try to change a property of an object that has...
Read more >
How to Prevent the Error: Cannot Read Property '0' of Undefined
The same error can occur for array-like objects as well. Array-like objects are objects that support the subscript ( [] ) operator (ie...
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