dvajs / dva

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)
https://dvajs.com/
MIT License
16.24k stars 3.17k forks source link

history #2433

Closed hyouka-oasis closed 3 years ago

hyouka-oasis commented 3 years ago

Warning: Please use require("history").createHashHistory instead of require("history/createHashHistory"). Support for the latter will be removed in the next major release.

老哥这个报错看着难受呀,每次都要改lib呢

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

smithyj commented 3 years ago
npm i --save @smithyj/dva@2.4.2

我修复了这问题并发了一个包,该包基于 dva@2.4.1 进行修复,需要增加 webpack alias 配置

{
    alias: {
        dva: "@smithyj/dva"
    }
}