Issue with the cognito module I am running into the below issue :


  The website encountered an unexpected error. Please try again
  later.InvalidArgumentException:
  Class &quot;\Drupal\cognito\Form\Email\UserLoginForm&quot; does not
  exist. in Drupal\Core\DependencyInjection\ClassResolver-&gt;getInstanceFromDefinition()
  (line 24 of core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).



I installed the Cognito module.
Its not properly built yet hence on installing it throws an error did not allow me to login into back end.
I tried to manually uninstall the module by deleting the folder and
then i cleared the cache through drush.
Tried re-installing and un-installing the cognito module with Drush
commands as well but still throws the same error.


But this is the error that i get even on clearing the cache.
You can't uninstall modules by deleting them. You need to run the uninstall routine. Via UI (which doesn't work in your case as you can't log in) or via CLI (Drush or Drupal Console).




Put the module back.
Uninstall it via Drush.
Log in.





drush pm:download cognito
drush pm:uninstall cognito
Log in.