score:3

Accepted answer

The same history object needs to be used in both places, e.g. in history.js:

export default createBrowserHistory({basename: '/myrootpath'});

and in index.js and store.js:

import history from './history';

Related Query

More Query from same tag