ERROR in ./src/views/HomeView.vue?vue&type=template&id=9ea40744&scoped=true&ts=true (./node_mod
ERROR in ./src/views/HomeView.vue?vue&type=template&id=9ea40744&scoped=true&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dis
·
ERROR in ./src/views/HomeView.vue?vue&type=template&id=9ea40744&scoped=true&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/views/HomeView.vue?vue&type=template&id=9ea40744&scoped=true&ts=true) 31:27
Module parse failed: Unexpected token (31:27)
File was processed with these loaders:
* ./node_modules/vue-loader/dist/templateLoader.js
* ./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| const _hoisted_26 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode("span", null, "Tom", -1 /* HOISTED */))
|
> export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
| const _component_el_icon = _resolveComponent("el-icon")!
| const _component_el_menu_item = _resolveComponent("el-menu-item")!
@ ./src/views/HomeView.vue?vue&type=template&id=9ea40744&scoped=true&ts=true 1:0-219 1:0-219
@ ./src/views/HomeView.vue 1:0-89 8:68-74 18:88-20:3 19:29-35 18:2-20:4
@ ./src/router/index.js 2:0-45 6:13-21
@ ./src/main.js 3:0-30 6:19-25
原因: 该项目不支持ts(TypeScript)
解决: sudo npm install -g typescript
更多推荐
所有评论(0)