When i try to run the website in local enviornment i get this error
The website encountered an unexpected error. Please try again later.
Error: Class 'DrushLogDrushLog' not found in DrupalComponentDependencyInjectionContainer->createService() (line 259 of core/lib/Drupal/Component/DependencyInjection/Container.php).
DrupalComponentDependencyInjectionContainer->createService() (Line: 173)
DrupalComponentDependencyInjectionContainer->get() (Line: 434)
DrupalComponentDependencyInjectionContainer->resolveServicesAndParameters() (Line: 273)
DrupalComponentDependencyInjectionContainer->createService() (Line: 449)
DrupalComponentDependencyInjectionContainer->resolveServicesAndParameters() (Line: 237)
DrupalComponentDependencyInjectionContainer->createService() (Line: 173)
DrupalComponentDependencyInjectionContainer->get() (Line: 434)
DrupalComponentDependencyInjectionContainer->resolveServicesAndParameters() (Line: 237)
DrupalComponentDependencyInjectionContainer->createService() (Line: 173)
DrupalComponentDependencyInjectionContainer->get() (Line: 105)
DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch() (Line: 127)
SymfonyComponentHttpKernelHttpKernel->handleRaw() (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle() (Line: 57)
DrupalCoreStackMiddlewareSession->handle() (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle() (Line: 191)
Drupalpage_cacheStackMiddlewarePageCache->fetch() (Line: 128)
Drupalpage_cacheStackMiddlewarePageCache->lookup() (Line: 82)
Drupalpage_cacheStackMiddlewarePageCache->handle() (Line: 50)
DrupalbanBanMiddleware->handle() (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle() (Line: 52)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle() (Line: 23)
StackStackedHttpKernel->handle() (Line: 708)
DrupalCoreDrupalKernel->handle() (Line: 19)
And when i try to reinstall the drush using composer require drush/drush it says dont install drush 10.6 and if i try to downgrade the installation of drush i get the same error. The current version of drush is 10.6