这些警告可否忽略
来源:7-4 登录页面的开发(3)
lovejavacoffee
2019-11-23
app.js:2801 Warning: Please use require("history").createBrowserHistory
instead of require("history/createBrowserHistory")
. Support for the latter will be removed in the next major release.
printWarning @ app.js:2801
module.exports @ app.js:2814
(anonymous) @ app.js:31065
webpack_require @ base.js:55
(anonymous) @ app.js:30067
webpack_require @ base.js:55
(anonymous) @ app.js:657
webpack_require @ base.js:55
(anonymous) @ app.js:12695
webpack_require @ base.js:55
(anonymous) @ app.js:3631
webpack_require @ base.js:55
webpackJsonpCallback @ base.js:26
(anonymous) @ app.js:1
app.js:2801 Warning: Please use require("history").createHashHistory
instead of require("history/createHashHistory")
. Support for the latter will be removed in the next major release.
printWarning @ app.js:2801
module.exports @ app.js:2814
(anonymous) @ app.js:32104
webpack_require @ base.js:55
(anonymous) @ app.js:32043
webpack_require @ base.js:55
(anonymous) @ app.js:659
webpack_require @ base.js:55
(anonymous) @ app.js:12695
webpack_require @ base.js:55
(anonymous) @ app.js:3631
webpack_require @ base.js:55
webpackJsonpCallback @ base.js:26
(anonymous) @ app.js:1
DevTools failed to parse SourceMap: http://localhost:8086/dist/js/sockjs.js.map
1回答
-
这是有些插件里用的方法快要过期了,暂时可以忽略,但升级react版本的时候要注意把其他组件也都升了,不然有可能报致命错误
012019-11-27
相似问题