Topic: Error: Invariant failed: You should not use <NavLink> outside a <Router>
dtremblay.grt
premium asked a year ago
Expected behavior Using the nav inside a router should not break the code requesting to use it inside a router
Actual behavior Using the nav inside a router breaks the code requesting to use it inside a router
Please note that the second browserrouter was added to try to solve the issue but hasn't.
Resources (screenshots, code snippets etc.)

dtremblay.grt
premium answered a year ago
After some tests, it seems that the react-router-dom was doubled in the lock file.
Both of them were in conflict with each other which caused the issue. This issue is closed.
Resolved
- User: Free
- Premium support: No
- Technology: React
- MDB Version: 4.25.1
- Device: PC
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No