npm init vite
√ Project name: ... arco-admin
√ Select a framework: » Vue
√ Select a variant: » TypeScript
cd arco-admin
npm install
npm install --save-dev @arco-design/web-vue
npm run dev
* 这时候打开vscode,main.ts报错“找不到模块./App.vue或其相应的类型声明。ts(2307)”,为了解决这个问题加入以下代码到vite-env.d.ts:
declare module "*.vue" {
import type { DefineComponent } from "vue"
const vueComponent: DefineComponent<{}, {}, any>
export default vueComponent
}