Topic: Error when trying to start Free Admin Dashboard for react: 'Error: Invariant failed: You should not use <NavLink> outside a <Router>'
J Miller free asked 4 years ago
I am trying to run the free admin dashboard for react, but I can't get it to work. I installed the files, then ran npm install, and without making any changes to the files I get this error:
Any help is greatly appreciated.
Piotr Glejzer staff answered 4 years ago
Hi,
thanks for the report. There is an error with a routing because there is an old version of it. We will fix this in the next release (on Monday ).
If you want to fix now, just update versions of dependencies in the package.json and re-install.
"dependencies": {
"google-map-react": "^1.1.5",
"mdbreact": "^4.25.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.3.0"
},
Best regards,
Piotr
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.25.0
- Device: Macbook
- Browser: Chrome
- OS: Mac OS
- Provided sample code: No
- Provided link: No