Open LensHunnel opened 6 years ago
Just encountered this too. Interestingly, only happens when dev server has --hot
flags for HMR, removing that prevents the error for me
Same here: with --hot flag in webpack.dev.conf.js it produces that same error.
Vue.use(NProgress)
const nprogress = new NProgress({ parent: '.nprogress-container' })
const app = new Vue({ nprogress, ...App }) app.$mount('#app')
npm run dev works fine
console shows: vue.esm.js?efeb:578 [Vue warn]: Error in beforeCreate hook: "SyntaxError: missing ) after argument list" found in ---> at node_modules/vue-nprogress/src/NprogressContainer.vue