Open Nash-x9 opened 1 year ago
"vue": "^3.2.40"
升级为 "vue": "^3.2.41"
来解决 error TS2322: Type '() => void' is not assignable to type 'MouseEvent'
。REDIRECT_MAIN
类型暂时去除来解决类型不匹配的问题:https://github.com/arco-design/arco-design-pro-vue/blob/main/arco-design-pro-vite/src/router/routes/base.ts#L6export const REDIRECT_MAIN: AppRouteRecordRaw = {
path: '/redirect',
name: 'redirectWrapper',
component: DEFAULT_LAYOUT,
meta: {
requiresAuth: true,
hideInMenu: true,
},
children: [
{
path: '/redirect/:path',
name: REDIRECT_ROUTE_NAME,
component: () => import('@/views/redirect/index.vue'),
meta: {
requiresAuth: true,
hideInMenu: true,
},
},
],
};
改为
export const REDIRECT_MAIN = {
path: '/redirect',
name: 'redirectWrapper',
component: DEFAULT_LAYOUT,
meta: {
requiresAuth: true,
hideInMenu: true,
},
children: [
{
path: '/redirect/:path',
name: REDIRECT_ROUTE_NAME,
component: () => import('@/views/redirect/index.vue'),
meta: {
requiresAuth: true,
hideInMenu: true,
},
},
],
};
vite.config.dev.ts 和 vite.config.prod.ts 内容差距好大
我用 vite.config.dev.ts 去vite build 没有问题
vite刚出来没多久,没有想到会有用的,看不懂
Basic Info
Extra info
可否提供推荐开发环境及版本? 我目前环境如下: node -v v14.21.1 npm -v 9.1.2 yarn -v 1.22.18
What is expected?
正常构建
Steps to reproduce
使用arco cli 下载的模板无法build
yarn build 提示