DEV Community

Sanket N Jain
Sanket N Jain

Posted on

1

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!

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

If you found this post useful, consider leaving a ❤️ or a nice comment!

Got it