Closed harrythedev closed 7 years ago
@harrythedev Can you please post your code? It sounds like you're passing a single function to combineReducers, when you should be passing an object with reducers as its values. Check out the documentation for combine reducers here: http://redux.js.org/docs/api/combineReducers.html#arguments
Note that the error originates in combineReducers.js
, which is part of redux-immutable
, not your code base.
There can be multiple reasons why you'd get this error. One, as @aclave1 said, is if you are passing a function to the combineReduncers
. It could be also if you are passing a plain object instead of Immutable.Map
.
I'm getting
uncaught typeError: reducer is not a function
fromcombineReducers.js
. When I checktypeof reducer
, it is a function.Does anyone know why I'm getting this error?