When I try to redirect using Router.push() I get the following error:
TypeError: next_router__WEBPACK_IMPORTED_MODULE_3__.Router.push is not a function
I am trying to migrate from create-react-app to next js.
const redirectUser = () => {
if (true) {
Router.push('/');
}
};
import Router from 'next/router?