dva学习采坑记录 1、引入dva后报错 解决 1、找到node_modules下 dva的index.js 2、将 var _createHashHistory = _interopRequireDefault(require("history/createHashHistory")); 替换为 var _createHashHistory = _interopRequireDefault(require("history").createHashHistory);