HalseySpicy / Hooks-Admin

🚀🚀🚀 Hooks Admin,基于 React18、React-Router V6、React-Hooks、Redux、TypeScript、Vite2、Ant-Design 开源的一套后台管理框架。
https://pro.spicyboy.cn
MIT License
1.65k stars 373 forks source link

npm run build报错 #32

Open snailsph opened 1 year ago

snailsph commented 1 year ago

image

wohaofang commented 1 year ago

我也出现的同样的问题

songwone commented 1 year ago

类型检查报错 把src\routers\interface\index.ts里面对应的类型声明改一下就好了

loveverse commented 1 year ago

原来的index类型值是true,所以不需要再定义类型,删除RouteObject的index即可