0👍
There is a GitHub issue for this with a lot of discussion and suggestions. I like this approach, where you force a page reload to the URL that could not be resolved:
router.onError((error, to) => {
if (error.message.includes('Failed to fetch dynamically imported module')) {
window.location = to.fullPath
}
})
It is almost seamless and has minimal overhead on your side.
- [Vuejs]-How to replace multiple if condition block to validate multiple input fields in a form – vue 3
- [Vuejs]-When not to use a div container in a template?
Source:stackexchange.com