Skip to content

BUG: invariant.js:38 Uncaught (in promise) Error: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded  #863

@rasmuslundberg

Description

@rasmuslundberg

Im getting this error message,

invariant.js:38 Uncaught (in promise) Error: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded 

react-bootstrap-table has worked perfectly until all of a sudden this appeared. I have tried to alias. Im using:
"react-bootstrap-table": "^2.6.0",

Also using webpack, tried:
resolve: {
alias: {
'react': path.resolve(__dirname, '../node_modules/react')
},
extensions: ['', '.js', 'jsx']
},
..But that didn't help.

Based on the error message there is some refs misson on ComponentDidUnMount() when a new table is requested... Anyone have a idea whats wrong?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions