Topic: MDBReact bootstrap code not working in React JS project.Default documentation code not working.
Muhammad Bilal free asked 1 year ago
I was expecting for the actual provided code of MDB react modal and tabs to work as i had used in a project a month but now its not working in react js.
The sample code provided in docs is not working in my project of mdb react tabs,modals.Its giving an unexpected error.Although i want to go with MDBReact bootstrap as it has an good functionality but now the documentation code is also not working.But its giving an error.
This is the repo in which its not working
This is the repo in which it was working fine a month ago.
Resources (screenshots, code snippets etc.)
Hi @Muhammad Bilal!
The problem is on your side. With the
Navbar component to be precise (as you can see in your logs), When I commented everything and just return a
div in this component - everything renders properly.
I tried npm ls react and found the react version under firstname.lastname@example.org was email@example.com, and my react version was 17.0.2. I just downgraded both react and react-dom to 17.0.1 and then did npm dedupe and that worked for me.
I have the same problem. I run the npm dedupe command, but the same error has occurred.
Try to run the
npm dedupe command and necessarily tell if it worked :)
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 5.0.1
- Device: ASUS Laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes