router
router copied to clipboard
How to pass the `router` prop to `<RouterView />`
Version
4.1.2
Reproduction link
Steps to reproduce
- Configure your router.
- Go to router.
- throws an error.
What is expected?
<router-view/> renders the route component.
What is actually happening?
Error! Console is: [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at......
I was told to report the error message to vue/core. But this can happen because I don't know how to use it. So I reported it to vue/router . If I'm using it wrong, the documentation might need more explanation. Description is too sparse. Thanks.
You are adding the route prop to routerview but it's not the right value (https://router.vuejs.org/api/index.html#route). It's an advanced feature so it's a bit hidden. It will be added later on
You can find an example here
I understood correctly.
It will be added later on
and added docs label, so I'm not going to close this issue.
Thanks.