我们有一个完整的项目网络,超过15个项目,每个项目已经运行了三年以上。今天,在重新安装节点模块后,到处出现了一个错误:
Syntax Error: Error: C:\Users\veneg\Desktop\***\assets2\src\views\template\Socials.vue:2:1
1|
> 2| .social
-------^
3| a.social__link.rtl(v-for="(soc, index) in socials" :key="index" :href="soc.link" target="blank")
4| icon(:name="soc.name" nofill)
5|
unexpected token "indent"
这个项目中有超过3000个文件出现了这个错误,我该怎么解决?
我尝试过更改pug加载器版本,但没有起到作用。
我的版本:
"vue-loader": "~15.6",
"vue-style-loader": "~4.1",
"vue-template-compiler": "~2.6",
"webpack": "~4.29",
"webpack-bundle-analyzer": "~3.0",
"webpack-cli": "~3.2",
"webpack-dev-server": "~3.1",
"webpack-hot-middleware": "~2.24",
"webpack-merge": "~4.2"
"@vue/cli-plugin-babel": "4.2.0",
"@vue/cli-plugin-eslint": "4.2.0",
"@vue/cli-service": "4.4.1",
"@vue/eslint-config-airbnb": "5.0.2",
"pug": "2.0.4",
"pug-plain-loader": "1.0.0",