Hey @khalid_ahmed1
As per the error message, It looks like you have same id in menu.xml, you can see this error message on this file,
vendor\magento\module-backend\Model\Menu\Builder\Command\Add.php
public function chain(\Magento\Backend\Model\Menu\Builder\AbstractCommand $command)
{
if ($command instanceof \Magento\Backend\Model\Menu\Builder\Command\Add) {
throw new \InvalidArgumentException("Two 'add' commands cannot have equal id (" . $command->getId() . ")");
}
return parent::chain($command);
}
Please confirm your menu id is different or you have something wrong in menu.xml in your custom module. Check once menu.xml in your module or try once after commenting block in menu.xml to identify the id which is making problem. Then rename it.
I hope it will help you.