acdlite / acdlite/redux-router

Uncaught TypeError: Cannot read property 'location' of undefined

未关闭
#281 30 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
2.3k
派生
194
PR 合并指标
30 天内没有已合并 PR

描述

## Version Latest Version
History: ^2.1.2
React Router: ^3.0.0

## Steps to reproduce

const createStoreWithMiddleware = compose(applyMiddleware(reduxThunk, logger),
reduxReactRouter({ routes, createHistory }));

const store = createStoreWithMiddleware(createStore)(rootReducer);

ReactDOM.render(











, document.querySelector('.main')
);

## Actual Behavior
When I ran my code it return me `Uncaught TypeError: Cannot read property 'location' of undefined`

any solution?

贡献指南

这个仓库没有索引到贡献指南

调研方向

The error suggests a missing or undefined location property, likely from the history object. Check how createHistory is imported and configured in reduxReactRouter. Look at the redux-router source code, especially the integration with React Router v3. Review the existing comments for any workarounds or fixes. The issue is old and the library may be deprecated, so understanding the context is crucial.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react, redux
领域
frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。