Router.push if ginving error in7.6.3 version
Ionic version:
[ ] 4.x [ ] 5.x [x] 7.x I'm submitting a ...
[x] bug report [ ] feature request
Current behavior:
Expected behavior:
Steps to reproduce:
Related code:
import { useIonRouter } from '@ionic/react';
const router = useIonRouter();
const onClick = () => {
router.push('/pathToPage')
}
Other information: router.push() is giving error
Ionic info:
Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
This issue is being closed due to insufficient reproduction. If this is still a problem in the latest version of Ionic, please open a new issue and ensure the template is fully filled out. Thank you!