Ant-design-pro: Validate config "history" failed, "type" is required

Created on 6 Apr 2020  ·  7Comments  ·  Source: ant-design/ant-design-pro

🐛 bug 描述

config中添加history: 'hash',然后yarn start就出现Validate config "history" failed, "type" is required

💻 复现代码

export default defineConfig({
  history: 'hash',
  hash: true,
  ........
})

© 版本信息

  • Ant Design Pro 版本: 4.0.0
  • umi 版本: 3.0.14
  • 浏览器环境: Chrome
  • 开发环境: mac OS
🛑 bug

All 7 comments

没有更新文档
屏幕快照 2020-04-06 16 36 11
解决方案

export default defineConfig({
  history: { type: 'hash' },
  hash: true,
  ........
})

醉了 文档也不更新

@xwg2015 解决了就好,就是有点浪费时间。

@xwg2015 @Liqiankun 来 PR 帮我们修改文档吧

@afc163 在什么地方?

关于hash的文档PR。已经Merge!
屏幕快照 2020-04-09 14 00 08

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cheung1111 picture cheung1111  ·  3Comments

zhuanglong picture zhuanglong  ·  3Comments

Yoping picture Yoping  ·  3Comments

wuyongdec picture wuyongdec  ·  3Comments

RichardStark picture RichardStark  ·  3Comments