• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
171 views

Problem:

I am getting following error as Uncaught Error:

"You must pass a component to the function returned by connect. instead received undefined"

Any help would be appreciated?

by (550 points)  

1 Answer

0 votes

Solution:

Generally this issue happens due to circular dependency, some of the reasons for this issues are:

1. Components may have circular dependency.

2. Export and export default are used in wrong way and then imported in wrong way.

3. Passing of wrong parameters using the connect function wrongly.

Some helpful Links:

https://github.com/leebyron/ecmascript-more-export-from

https://stackoverflow.com/questions/42324317/you-must-pass-a-component-to-the-function-returned-by-connect-instead-received

https://haodong.io/redux-testing-invariant-violation-error

by (4k points)  
...