Skip to content

Apollo + react-chartjs-2 gives me Uncaught TypeError: Cannot add property _meta, object is not extensible #162

Description

@acomito

I'm not sure if this is an apollo issue, or a react issue. I keep getting
Uncaught TypeError: Cannot add property _meta, object is not extensible

If I use another way to get the data (aside from apollo), such as a meteor method (http REST call, basically), I can pass the response in to my chart. If I grab the data via apollo, which gets added to the props, I can not pass that object into my chart.

I don't think it has to do with this:

#18

if I pass in an empty object, I don't get any error. It's only when I pass in the data via apollo/props

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions