The code below gives
Uncaught Error: You must pass a component to the function returned by connect. Instead received undefined
More details can be found here.
There might be three reasons, that are summarized as follows:
- Circular dependencies between components
- Wrong usage of
export
andexport default
then imported the wrong way- Used the connect function wrongly, passed the wrong parameters
In my case is was Circular dependencies, and the circular-dependency-plugin helped me fix it.