DEV Community

Sanket N Jain
Sanket N Jain

Posted on

Attempted import error: 'combinedReducers' is not exported from 'redux'.

import {createStore, combinedReducers, applyMiddleware, compose} from 'redux';
import {productListReducer} from './reducers/productReducers';
import thunk from 'redux-thunk'

const initialState = {};
const reducer = combinedReducers({
    productList: productListReducer
})

const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer, initialState, composeEnhancer(applyMiddleware(thunk)));
export default store;

Top comments (3)

Collapse
 
teamroggers profile image
Rogier Nitschelm

I think it is combineReducers, without a "d".

Collapse
 
sanketnjain5 profile image
Sanket N Jain

Thanks!!

Collapse
 
teamroggers profile image
Rogier Nitschelm

You're welcome!