Topic: Navigation broken when I upgraded working app to 4.8.3

Kinexis priority asked 6 years ago


I had a small working app in MDB-React and it failed when I upgraded to 4.8.3.  

I used the upgrade procedure I get here a few days ago.  That is:

1. remove mdbreact dependency from project.json

2. npm install

3. add dependency back in

4. npm install again

But now Navigation fails.  The Homepage comes up correctly.  But when I click on a menu item the screen goes completely blank.  I notice that the URL has *not* been modified by the revised path in the NavLink.  e.g. If I click on "Map" with a to="/map" (or "/map/" or "/map/#") the URL is *not* changed it remains the original base URL; e.g. localhost:8000).  If I manually add the path to the base URL in the browser the map page now appears.

Conclusion: something has changed between NavLink and the Router.

Is there I way I can roll back to a previous version?  How do I do that if I'm using the git dependency method of binding to react?

 


Kinexis priority commented 6 years ago

FIXED: I redid CRA and the navigation now works.  In other words, the upgrade procedure listed above (that I got here 3 days ago) doesn't fully work.

 


Anna Morawska staff commented 6 years ago

Hi, thank you for sharing this with us.  Sometimes it happens because of the package-lock.json file.  If so, please try to run npm update mdbreact, or remove package-lock.json and node_modules folder and then run npm install.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: 4.7.1
  • Device: MacBook Pro
  • Browser: Chrome
  • OS: OS X Mohave
  • Provided sample code: No
  • Provided link: No
Tags