Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: I'm getting "multiple copies of React" Error

Yarden H free asked 7 years ago


Element ref was specified as a string (ripple) but no owner was set. You may have multiple copies of React loaded. (details: https://fb.me/react-refs-must-have-owner). Here's my code: https://github.com/yardenhochman/Acroyoga/blob/master/client/src/Components/UI/Mainframe/PoseDisplay.js

Tobiloba Adesanya free commented 7 years ago

I am getting the same problem, in every component that uses this ripple effect

john blakley free commented 7 years ago

same here

Mikołaj Smoleński staff commented 7 years ago

It's occuring because the lates version of React is 16 and mdbreact is based on 15 version. In the coming days we'll upgrade our product to the latest version.

Tobiloba Adesanya free commented 7 years ago

Thanks @Mikołaj Smoleński for the response. I actually updated the react package within the mdbreact package to React 16 although I am not sure if that made an impact.

Mikołaj Smoleński staff answered 7 years ago


Hello again, We've fixed this bug by updating our product to the latest React version and changing refs into ReactDOM in Waves component. Please delete mdbreact from package.json and add it again to dependencies like this: "mdbreact":"git+https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design.git#react-upgrade" We'll fix it also in the next update of mdbreact in npm. Regards  

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags