question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate config "history" failed, "type" is required

See original GitHub issue

🐛 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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Liqiankuncommented, Apr 9, 2020

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

1reaction
Liqiankuncommented, Apr 6, 2020

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

export default defineConfig({
  history: { type: 'hash' },
  hash: true,
  ........
})
Read more comments on GitHub >

github_iconTop Results From Across the Web

EC2 instance launch failures - Amazon EC2 Auto Scaling
Solution: Try a different instance configuration. To search for an instance type that meets your requirements, see Finding an Amazon EC2 instance type...
Read more >
Mongoose: validation error path is required - Stack Overflow
To solve this type of error ValidationError: Path 'email' is required. your email is set required in Schema, But no value is given...
Read more >
Using Configuration History with IIS 7 and IIS 8 - Microsoft Learn
Step 2: Locate configHistory Defaults in IIS Schema · Click Start, click Run, and in the Open: dialog box, type notepad and Click...
Read more >
Troubleshooting the GitLab chart
An error like this could occur when you run helm upgrade and there are some spaces in the parameters. In the following example,...
Read more >
Connect REST Interface - Confluent Documentation
This API performs per config validation, returns suggested values and error messages during validation. Request JSON Object: config (map) – Configuration ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found