In Magento2 when we remove the modules from the directory, It will show the blank page with the below error message.
An error has happened during application run. See exception log for details
To solve this issue we need to follow the below steps.
1.Change it to developer mode if you are in different mode.
Php magento deploy:mode:set developer
2. Give write permission to var/ pub/ directory
chmod -R 777 var/ pub/
3. Deploy static content
Php magento Setup:static-content:deply
Now the site will be up and run without any issues.
Hope it helps for someone who starts to work on Magento2