Skip to content

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

@crazyair

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions