Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/login/username' cannot be created in a document with origin 'null' and URL code example
Example: error build react Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///' cannot be created in a document with origin 'null' and URL
import { HashRouter, Route, Link, Switch } from 'react-router-dom';