I am getting this error in my extension.
PackageName\ModuleName\Block\Enhanced
Incorrect dependency in class PackageName\ModuleName\Block\Enhanced in /var/www/html/app/code/PackageName/ModuleName/Block/Enhanced.php \Magento\Store\Model\StoreManagerInterface already exists in context object
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\Catalog\Model\Session $catalogSession,
\Magento\Store\Model\StoreManagerInterface $storeManager,
array $data = []
)
{
parent::__construct($context, $data);
$this->_catalogSession = $catalogSession;
$this->_storeManager = $storeManager;
}