umi-blocks
umi-blocks copied to clipboard
如果 config 配置的 routes 是个方法,add block 就会报错
const config: IConfig = {
// 路由配置
routes: Routers(),
umi block add xxx --path=demo
就会报这个错误
✖ error Error: Error: can not find import of undefined