
方案一:在package.json添加
"scripts": {
"postinstall": "npx rimraf ./node_modules/@types/preact & npx rimraf ./node_modules/preact/src/**/*.d.ts"
}
npm install
方案二:在tsconfig.json添加
"vueCompilerOptions": {
"experimentalDisableTemplateSupport": true // 去掉volar下el标签红色波浪线问题
},
网友评论