Open ginpei opened 5 years ago
If its react app and you are using react-router-dom --
The 2 lines of code that match the error are inside:
node_modules/react-router-dom/BrowserRouter.js node_modules/react-router-dom/HashRouter.js
modify 2 lines of code that match the error.
require("history/createBrowserHistory") change to require('history').createBrowserHistory();
same with the HashRouter.js file.
require("history/createHashHistory") change to require('history').createHashHistory();
Let me know if it helps :)
Thank you for reminding me this project!