connectedRouter Error: Could not find router reducer in state tree, it must be mounted under “router”

后端 未结 6 1553
轮回少年
轮回少年 2021-01-01 15:09

I am new to React.js and was setting up base project at that I was getting one issue that my routing got changed but component doesn\'t load. After googling I found that I n

6条回答
  •  迷失自我
    2021-01-01 15:59

    The main issue is the version of the history package, with react-router-dom v5 you need to use history v4 (the latest version of which is 4.10.1) - history v5 is only compatible with react-router-dom v6.

提交回复
热议问题