question about history/createBrowserHistory warning
See original GitHub issueAfter upgrading react-scripts version 0.9.5 to 3.0.1, there are several warnings
Warning: Please use
require("history").createMemoryHistory
instead ofrequire("history/createMemoryHistory")
. Support for the latter will be removed in the next major release. Warning: Please userequire("history").PathUtils
instead ofrequire("history/PathUtils")
. Support for the latter will be removed in the next major release. Warning: Please userequire("history").createBrowserHistory
instead ofrequire("history/createBrowserHistory")
. Support for the latter will be removed in the next major release. Warning: Please userequire("history").createHashHistory
instead ofrequire("history/createHashHistory")
. Support for the latter will be removed in the next major release.
The error is from react-error-overlay/lib/index.js:1375
react-scripts@^3.0.1 – react-dev-utils “^9.0.1” – react-error-overlay “^5.1.6”
Can you please suggest anything to help resolve these warnings?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6
Top GitHub Comments
The issue was because of the react-router-dom@4.1.1 which used older version of history package. Updating the react-router-dom resolved the issue. Thanks for your help.
Please provide a full complete repro that demonstrates this error