在package.json中浓体,打包的配置項中去掉 vue-tsc 就行了
"scripts": {
"dev": "vite --host --open",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
改為
"scripts": {
"dev": "vite --host --open",
"build": " vite build",
"preview": "vite preview"
},