'TypeError: Object(...) is not a function React-Redux js

I'm trying to run my react app and i'm getting this errors on my screen

TypeError: Object(...) is not a function Provider C:/Users/DELL/Desktop/contactmanager_redux/node_modules/react-redux/es/components/Provider.js:12

    9 |   children,
  10 |   serverState
  11 | }) {
> 12 |   const contextValue = useMemo(() => {
  13 |     const subscription = createSubscription(store);
  14 |     return {
  15 |       store,

console error: Provider.js:12 Uncaught TypeError: Object(...) is not a function at Provider (Provider.js:12:1)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source