react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Uncaught Exception

Open sandeep-prakash opened this issue 10 years ago • 4 comments

Hi,

I see the following error:

Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's render method). Try rendering this component inside of a new top-level component which will hold the ref.

I get this while running the basic example. Looks like it's an issue with multiple react modules being loaded. Is there a way to avoid this?

Regards, SP

sandeep-prakash avatar Jan 03 '16 00:01 sandeep-prakash

hey @sandeep-prakash -- hmm strange. there's a similar issue here https://github.com/adazzle/react-data-grid/issues/183

what browser are you using?

jpdriver avatar Jan 26 '16 19:01 jpdriver

I tried making the App use the same version of React as the react-grid-module.

It didn't help :)

txm avatar Jan 26 '16 19:01 txm

afaict this is resolved with React 14?

txm avatar Jan 28 '16 09:01 txm

yep - fixed by #63

bakesteve avatar Feb 03 '16 09:02 bakesteve