bug 描述 [详细地描述 bug,让大家都能理解] 使用脚手架创建pro项目 没有任何修改,启动就报错
yarn create umi
* ant-desigin-pro
* javascript
TypeError: Cannot read property 'dispatch' of undefined
ConnectedRouter._this.handleLocationChange
node_modules/react-router-redux/es/ConnectedRouter.js:26
23 | }
24 |
25 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.handleLocationChange = function (location) {
> 26 | _this.store.dispatch({
| ^ 27 | type: LOCATION_CHANGE,
28 | payload: location
29 | });
View compiled
复现步骤 [清晰描述复现步骤,让别人也能看到问题]
期望结果 [描述你原本期望看到的结果]
复现代码 [提供可复现的代码,仓库,或线上示例]
版本信息:
- Ant Design Pro 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
其他信息 [如截图等其他信息可以贴在这里]
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Bug Definition & Meaning - Merriam-Webster
The meaning of BUG is any of an order (Hemiptera and especially its suborder Heteroptera) of insects (such as an assassin bug or...
Read more >Bug (2006) - IMDb
An unhinged war veteran holes up with a lonely woman in a spooky Oklahoma motel room. The line between reality and delusion is...
Read more >bug - Wiktionary
(entomology) An insect of the order Hemiptera (the “true bugs”). Any of various species of marine or freshwater crustaceans; e.g. a Moreton Bay...
Read more >Bug - Wikipedia
A terrestrial arthropod animal (with at least six legs). Insect, a six-legged arthropod · Covert listening device, used in surveillance, espionage and policing ......
Read more >BUG | definition in the Cambridge English Dictionary
bug noun (INSECT) ... an insect: Some tiny white bugs had eaten the leaves of my house plants. ... A bug is also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve noticed that the error occurs only when using VSCode on Windows. When using the system CMD, the dev server runs fine. Not sure why this is happening though.
I can’t reproduce, try to reload dependencies?