В чем ошибка? Provider?

Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function 
component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this 
problem.
at resolveDispatcher (react.development.js:1476:1)
at useMemo (react.development.js:1531:1)
at Provider (Provider.js:11:1)
at renderWithHooks (react-dom.development.js:14803:1)
at mountIndeterminateComponent (react-dom.development.js:17482:1)
at beginWork (react-dom.development.js:18596:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:188:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:237:1)
at invokeGuardedCallback (react-dom.development.js:292:1)
at beginWork$1 (react-dom.development.js:23203:1)
at performUnitOfWork (react-dom.development.js:22157:1)
at workLoopSync (react-dom.development.js:22130:1)
at performSyncWorkOnRoot (react-dom.development.js:21756:1)
at scheduleUpdateOnFiber (react-dom.development.js:21188:1)
at updateContainer (react-dom.development.js:24373:1)
at react-dom.development.js:24758:1
at unbatchedUpdates (react-dom.development.js:21903:1)
at legacyRenderSubtreeIntoContainer (react-dom.development.js:24757:1)
at Object.render (react-dom.development.js:24840:1)
at ./src/index.js (index.js:9:1)
at __webpack_require__ (bootstrap:784:1)
at fn (bootstrap:150:1)
at 1 (serviceWorker.js:141:1)
at __webpack_require__ (bootstrap:784:1)
at checkDeferredModules (bootstrap:45:1)
at Array.webpackJsonpCallback [as push] (bootstrap:32:1)
at main.chunk.js:1:69
index.js:1 The above error occurred in the <Provider> component:
in Provider (at src/index.js:10)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
console.<computed> @ index.js:1
react-dom.development.js:22665 Uncaught Error: Invalid hook call. Hooks can only be called 

inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. at resolveDispatcher (react.development.js:1476:1) at useMemo (react.development.js:1531:1) at Provider (Provider.js:11:1) at renderWithHooks (react-dom.development.js:14803:1) at mountIndeterminateComponent (react-dom.development.js:17482:1) at beginWork (react-dom.development.js:18596:1) at HTMLUnknownElement.callCallback (react-dom.development.js:188:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:237:1) at invokeGuardedCallback (react-dom.development.js:292:1) at beginWork$1 (react-dom.development.js:23203:1) at performUnitOfWork (react-dom.development.js:22157:1) at workLoopSync (react-dom.development.js:22130:1) at performSyncWorkOnRoot (react-dom.development.js:21756:1) at scheduleUpdateOnFiber (react-dom.development.js:21188:1) at updateContainer (react-dom.development.js:24373:1) at react-dom.development.js:24758:1 at unbatchedUpdates (react-dom.development.js:21903:1) at legacyRenderSubtreeIntoContainer (react-dom.development.js:24757:1) at Object.render (react-dom.development.js:24840:1) at ./src/index.js (index.js:9:1) at webpack_require (bootstrap:784:1) at fn (bootstrap:150:1) at 1 (serviceWorker.js:141:1) at webpack_require (bootstrap:784:1) at checkDeferredModules (bootstrap:45:1) at Array.webpackJsonpCallback [as push] (bootstrap:32:1) at main.chunk.js:1:69 VM27:2 Uncaught ReferenceError: process is not defined at 4043 (:2:13168) at r (:2:306599) at 8048 (:2:9496) at r (:2:306599) at 8641 (:2:1379) at r (:2:306599) at :2:315627 at :2:324225 at :2:324229 at e.onload (index.js:1:1)
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import {Provider} from "react-redux";
import store from "./redux/store";

ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);




import {combineReducers, createStore, applyMiddleware } from 'redux'
import { composeWithDevTools} from "redux-devtools-extension";
import thunk from "redux-thunk";
import {productsListReducer, productDetailsReducer} from "../reducers/productsReducer.js";
import {cartReducer} from "../reducers/cartReducer.js";
import {userLoginReducer, userRegisterReducer} from "../reducers/userReducer.js"

const reducer = combineReducers({
    productsList: productsListReducer,
    productDetails: productDetailsReducer,
    cart: cartReducer,
    userLogin: userLoginReducer,
    userRegister: userRegisterReducer
})

const cartFromStorage = localStorage.getItem('cartItems') ? 
JSON.parse(localStorage.getItem('cartItems')) : []
const userFromStorage = localStorage.getItem('userInfo') ? 
JSON.parse(localStorage.getItem('userInfo')) : null
const initialState = {cart: {cartItems: cartFromStorage}, userLogin: {userInfo: 
userFromStorage}}
const middleware = [thunk]

const store = createStore(reducer, initialState, 
composeWithDevTools(applyMiddleware(...middleware)))

export default store

Ответы (0 шт):