use async code in beforeRouteEnter hook,it throw some error [issue link] This question is available on Nuxt.js community (#c2627)