'Does anyone know how to wrap a React functional component when using react-redux 5.0.7

I am developing a project with react-admin. Recently I upgraded the node version from 12 to 16.14.0 with webpack 5. But when I tried to run the application its throwing error as Invariant Violation: You must pass a component to the function returned by connect. Instead received {"propTypes":{},"displayName":"WithStyles(functionalcomponent)....



Sources

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

Source: Stack Overflow

Solution Source