Please use `require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`. code example
Example: require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`
// history.js
import { createBrowserHistory } from "history";
export default createBrowserHistory();