umi-blocks icon indicating copy to clipboard operation
umi-blocks copied to clipboard

如果 config 配置的 routes 是个方法,add block 就会报错

Open crazyair opened this issue 6 years ago • 0 comments

const config: IConfig = {
    // 路由配置
    routes: Routers(),
 umi block add xxx  --path=demo
就会报这个错误
✖  error     Error: Error: can not find import of undefined 

crazyair avatar Oct 28 '19 01:10 crazyair