Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
See original GitHub issueTest Case

Steps to reproduce
Create a new app npm install -g create-react-app create-react-app react-router-params cd react-router-params/
Install react router Install react redux npm install react-router-dom@next
Paste in example lifted directly from docs
Run it npm start
Expected Behavior
Actual Behavior Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of Route.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Invariant Violation: Element type is invalid: expected a string ...
This error can rise if you try to import a non-existent component. Make sure you have no typo and that the component indeed...
Read more >(React) Element type is invalid, expected a string (for built ...
To solve the error "Element type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got",...
Read more >Element type is invalid: expected a string (for built ... - GitHub
The app breaks and gives this error message: Element type is invalid: expected a string (for built-in components) or a class/function (for ......
Read more >Element type is invalid: expected a string (for built-in ... - Reddit
Getting Error : Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ...
Read more >Server Error Error: Element type is invalid: expected a ...
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I use “react-router-redux”: “^4.0.8”, same error. Change version to “react-router-redux”: “^5.0.0-alpha.9”, then it’s fine
Issue happened because I used
"react-router-redux": "^4.0.8",instead of"react-router-redux": "^5.0.0-alpha.9",. I wonder why create-react-app doesn’t warn about undefined imports