Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency of React 16 is not updated #13

Closed
dasarishiv opened this issue Jan 6, 2018 · 10 comments
Closed

Dependency of React 16 is not updated #13

dasarishiv opened this issue Jan 6, 2018 · 10 comments

Comments

@dasarishiv
Copy link

its mentioned that version 4.1.0 is updated for React 16. but its package.json have dependency : "react": "^15.6.1",
"react-dom": "^15.6.1",

which cause multiple node_module installation dependency error:

invariant.js:42 Uncaught Error: 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).
at invariant (invariant.js:42)
at coerceRef (react-dom.development.js:6736)
at reconcileSingleElement (react-dom.development.js:7532)
at reconcileChildFibers (react-dom.development.js:7635)
at reconcileChildrenAtExpirationTime (react-dom.development.js:7756)
at reconcileChildren (react-dom.development.js:7747)
at finishClassComponent (react-dom.development.js:7881)
at updateClassComponent (react-dom.development.js:7850)
at beginWork (react-dom.development.js:8225)
at performUnitOfWork (react-dom.development.js:10224)

@hunterdt
Copy link

I've got the same issue.

@joselevelsup
Copy link

I have been getting the same issue when using the navbar example from the docs.

@woodie12
Copy link

I am getting the same issue here for the nav bar, so I uninstall React 16.0 version and install 15.6.1 version react and react-dom instead

@smolenski-mikolaj
Copy link
Contributor

Hello,
We've updated our product to the latest React version. Please delete mdbreact from package.json and then add to dependencies this line:

"mdbreact":"git+https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design.git#react-upgrade"

We'll update it also in npm with the next release of mdbreact.

Regards

@jstgermain
Copy link

jstgermain commented Feb 23, 2018

that "fix" did not work for me

@smolenski-mikolaj
Copy link
Contributor

What are Your errors? If console still shows same errors, it means that You haven't reinstall mdbreact properly.

@jstgermain
Copy link

I deleted the mdbreact file from node_modules and changed the package.json, did npm install and get same error. I then blew away entire node_modules, and reinstalled, same error. Docker could be messing up, so I will try to reinstall entire app today and do a build. I will keep you posted. Thanks for the quick response.

@pmbanugo
Copy link

mdbreact or mdbootstrap? what I installed is the mdbootstrap package and it's the folder I see in node_modules

@jstgermain
Copy link

So the react update branch is the one installed, but no styles are loading. No more errors.

@smolenski-mikolaj
Copy link
Contributor

We've made a new 'step by step' instruction of MDB React installation. If Your problems are still not resolved please follow this guide: https://mdbootstrap.com/react/react-bootstrap-getting-started/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants