这是我第一次使用React和Redux。我找不到周围的错误。
“ webpack-internal:///../node_modules/react-error-overlay/lib/index.js:1446存储区没有有效的reducer。确保传递给CombineReducers的参数是一个其值为减速器的对象。”
这是减速器:
import { combineReducers } from 'redux';
const rootReducer = combineReducers({});
export default rootReducer;
答案 0 :(得分:0)
如果对象为空。
drop_first
将显示此错误。
在其中添加一些数据,例如:
const rootReducer = combineReducers({});
减速器示例
import { combineReducers } from 'redux';
import foo from '../foo' //this is your reducer
const rootReducer = combineReducers({foo});
export default rootReducer;