Zend certified PHP/Magento developer

The “componentType” configuration parameter is required for the “” component

I created a custom module. My module adds the custom attribute to product. Now when I try to add New Product in Magento 2.4.4 , I am getting The “componentType” configuration parameter is required for the “” component. error

Here is My code for InstallData.php

<?php
namespace VendorModuleSetup;

use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
 
class InstallData implements InstallDataInterface
{
 
    private $eavSetupFactory;
 
    public function __construct(EavSetupFactory $eavSetupFactory)
    {
        $this->eavSetupFactory = $eavSetupFactory;
    }
 
    /**
     * {@inheritdoc}
     */
    public function install(
        ModuleDataSetupInterface $setup,
        ModuleContextInterface $context
    ) {
        $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
        $eavSetup->addAttribute(
MagentoCatalogModelProduct::ENTITY,
        'mcwarehouse',
        [
            'type' => MagentoFrameworkDBDdlTable::TYPE_TEXT,
            'label' => 'Warehouse',
            'input' => 'select',
            'source' => VendorModuleModelProductAttributeSourceWarehouse::class,
            'backend_model' =>MagentoEavModelEntityAttributeBackendArrayBackend::class,
            'required' => false,
            'sort_order' => 50,
            'global' => MagentoEavModelEntityAttributeScopedAttributeInterface::SCOPE_STORE,
            'group' => 'Product Details',
            'is_used_in_grid' => true,
            'is_visible_in_grid' => false,
            'is_filterable_in_grid' => false
        ]
        );
    }
}

The error I got is

1 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): The "componentType" configuration parameter is required for the "" component.