Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`.

错误提示:

Please use `require("history").createHashHistory` instead of `require("history/createHashHistory")`.

搜索常用的解决方案:

node_modules -> dva -> lib -> index.js 

修改内容如下:

var _createHashHistory = _interopRequireDefault(require("history/createHashHistory"));

修改为:

var _createHashHistory = _interopRequireDefault(require("history").createHashHistory);

问题解决..

posted @ 2021-03-31 11:40  -起风了🪐  阅读(1180)  评论(0编辑  收藏  举报