當前位置:網站首頁>dva Please use `require(“history“).createHashHistory` instead of `require(“history/createHashHistory

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

2022-01-28 00:42:30 本寶寶很開心

警告信息:Warning: Please use require("history").createHashHistory instead of require("history/createHashHistory"). Support for the latter will be removed in the next major release.
解决方法:找到文件node_modules=>dva=>lib=>index.js,
找到require(“history”).createHashHistory,更改為:require(“history/createHashHistory”); 更改後需要重新啟動項目

版權聲明
本文為[本寶寶很開心]所創,轉載請帶上原文鏈接,感謝
https://cht.chowdera.com/2022/01/202201280042300545.html

隨機推薦