【React】Could not find router reducer in state tree解決方法

前言 這個問題是我新裝一個環境時出現的,使用的是"connected-react-router": "^6.8.0", 緣由 經排查,是因爲history的最新版不兼容connect-react-router致使。 history的最新版爲5.0,而connect-react-router使用的history版本爲4.7,從而致使reducer執行錯誤。 解決 不顯示安裝history或者指定老版
相關文章
相關標籤/搜索