BrowserHistoryOptions does not contain base name
gregryork opened this issue · 1 comments
gregryork commented
The example given in the FAQ for configuring the router does not work as base name is not part of BrowserHistoryOptions. This used to work in older versions of connected-react-router, as I copied this line from a project from a few months ago.
export const history = createBrowserHistory({ basename: process.env.PUBLIC_URL, });
gregryork commented
Looks like it's been removed in "history", so the correct code is now
export const history = createBrowserHistory();