vite.config.ts报错情况如下 在tsconfig.node.json添加 compilerOptions 对象属性添加 "allowSyntheticDefaultImports": true 即可