Expected a component class, got []object Object