umijs / umi-blocks

Official collection of some high quality blocks.
https://blocks.umijs.org
MIT License
229 stars 50 forks source link

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

Open crazyair opened 4 years ago

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