本来项目运行很好,今天安装一个工具组件,js-md5,发现命令行npm提示让运行npm audit fix修补漏洞,就运行了一下,然后就悲剧。首先是报‘overlay’不是选项,通过排查,是vue.config,js中devServer的选项,明明vue网站的实例也有这个选项,先注释掉,然后报很多如下错误:
ERROR in ./src/views/organization/Organization.vue?vue&type=template&id=f3b386f6&scoped=true&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[1]!./src/views/organization/Organization.vue?vue&type=template&id=f3b386f6&scoped=true&ts=true) 3:27
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
* ./node_modules/vue-loader/dist/templateLoader.js
* ./node_modules/cache-loader/dist/cjs.js
* ./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
> export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {
| const _component_router_view = _resolveComponent("router-view")!
|
@ ./src/views/organization/Organization.vue?vue&type=template&id=f3b386f6&scoped=true&ts=true 1:0-295 1:0-295
@ ./src/views/organization/Organization.vue 1:0-93 8:68-74 19:92-22:3 21:29-35 19:2-22:4
@ ./src/router/index.js 54:88-136
@ ./src/main.js 9:37-56
不光view-router的标签不认,element-plus的标签也都不认
这些代码以前运行的很好,折腾了半天还是跑不起来,希望路过的大神指点一二,到底哪里出了问题
谢谢谢谢
--
FROM 115.171.170.*