Element type is invalid: expected a string (for built-in components) or a class/function
Problem is in the import statements. You have not used curly braces while importing some components like createHistory. If a component uses a default export like: export default X Then you can simply import it like: import X from ‘./X’; But if you are using a named export like: export const X=1; Then you need … Read more