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.

Cannot assign to read only property 'children' of object '#<Object>'

See original GitHub issue

I’m getting the following error just setting up the sample inside my application…

import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
render(){
        var products = [
            {
                id: 1,
                name: "Product1",
                price: 120
            },{
                id: 2,
                name: "Product2",
                price: 80
            },{
                id: 3,
                name: "Product3",
                price: 207
            },{
                id: 4,
                name: "Product4",
                price: 100
            },{
                id: 5,
                name: "Product5",
                price: 150
            },{
                id: 6,
                name: "Product1",
                price: 160
            }
        ];
        return (
            <div className="box box-blue">
                <div className="box-body">

                    <BootstrapTable data={products}>
                        <TableHeaderColumn isKey={true} dataField="id">Product ID</TableHeaderColumn>
                    </BootstrapTable>
...

I am using the latest React so not sure if that is part of the issue ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
AllenFangcommented, Apr 28, 2016

hi all, fixes on v2.2.0

0reactions
AllenFangcommented, Apr 28, 2016

@trivektor, yes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot assign to read only property '' of ...
The solution is to pass an empty object to Object.assign(). By doing this, you're telling the method to produce a NEW object with...
Read more >
Cannot assign to read only property of Object in TypeScript
The TypeScript error "Cannot assign to read only property of object" occurs when we try to change a property of a frozen object...
Read more >
Cannot assign to read only property 'children' of object ...
Hello! I wanted to let you know about an issue we ran into in one of our projects that was using next-boost. Lots...
Read more >
TypeError: "x" is read-only - JavaScript - MDN Web Docs
The JavaScript strict mode-only exception "is read-only" occurs when a global variable or object property that was assigned to is a read-only property....
Read more >
Zoom SDK Cannot assign to read only property 'video' of ...
Dear , i got this Error “Cannot assign to read only property 'video' of object '[object Object]” any one can help Plz :slight_smile:...
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