You can replace vendor directory with the new one.
By the way Its Factory method error , you can resolved this by following below steps.
- Remove var/generation , var/cache , var/page_cache directory
- run php bin/magento setup:upgrade command
- run php bin/magento setup:di:compile command
- run php bin/magento setup:static-content:deploy command
- run php bin/magento cache:clean and php bin/magento cache:flush command