Привет, не понимаю почему у меня выводит эти ошибки, уже все пересмотрел, но ничего не работает
Вот мой store
import {combineReducers, legacy_createStore as createStore} from "redux";
import { dialogsReducer } from "../Reducers/dialogsReducer";
import friendsReducer from "../Reducers/friendsReducer";
import NewsReducer from "../Reducers/newsReducer";
import { profileReducer } from "../Reducers/profileReducer";
import surscribersReducer from "../Reducers/surscribersReducer";
let reducers = combineReducers({
PostPage: profileReducer,
MessangePage: dialogsReducer,
NewsPage: NewsReducer,
FriendsPage: friendsReducer,
SurscribersPage: surscribersReducer
})
const store = createStore(reducers);
window.store = store;
export default store;
Вот часть кода после набора которого у меня начала появляться ошибка
let mapStateToProps = (state) => {
return {
state: state
}
}
let mapDispatchToProps = (dispatch) => {
return {
newPostText: text => dispatch(onPostActionCreate(text)),
addPost: () => dispatch(addPostActionCreate())
}
}
const ProfileInfoContainer = connect(mapStateToProps, mapDispatchToProps)(ProfileInfo);