Chunks bug vue js

router.onError(error => {  if (/loading chunk \d* failed./i.test(error.message)) {    window.location.reload()  }})
Vivacious Vulture