Error on npm run dev
Closed this issue · 1 comments
import VueExtendLayouts from 'vue-extend-layout'; // in APP.vue
npm run dev
==>
ERROR in ./node_modules/vue-extend-layout/vue-extend-layout.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-extend-layout/vue-extend-layout.vue?vue&type=script&lang=js&) 50:19
Module parse failed: Unexpected token (50:19)
You may need an appropriate loader to handle this file type.
| if (!this.layoutName) return
| const ln = this.prefix + this.layoutName
return () => import(/* webpackChunkName: "layout-[request]" */ `@/${this.path}/${ln}.vue`)
| }
| }
@ ./node_modules/vue-extend-layout/vue-extend-layout.vue?vue&type=script&lang=js& 1:0-116 1:132-135 1:137-250 1:137-250
@ ./node_modules/vue-extend-layout/vue-extend-layout.vue
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/js/App.vue?vue&type=script&lang=js&
@ ./src/js/App.vue?vue&type=script&lang=js&
@ ./src/js/App.vue
@ ./src/js/main.js
@ multi (webpack)-dev-server/client?http://0.0.0.0:3000 (webpack)/hot/dev-server.js ./src/js/main.js
update "vue": "^2.5.16" ==> "vue": "^2.5.17"