When I try to replace using Router.replace() I get the following error:
TypeError: next_router__WEBPACK_IMPORTED_MODULE_6__.Router.replace is not a function
I have tried like this:
import { Router } from "next/router";
{isAuth() && (
<NavItem>
<Link href="/signup">
<NavLink
style={{ cursor: "pointer" }}
onClick={() => signout(() => Router.replace(`/signin`))}
>
SignOut
</NavLink>
</Link>
</NavItem>
)}
Any Suggestion please.
