magento2 – Error with virtualType collection construct


I am upgrading from Magento 2.2.4 to 2.3.5. I have this collection using virtualTyp made by someone else. I don’t understand what’s going on.

Anyone can help ? THanks !!

<virtualType name="IntelipostPickupModelResourceItemsCollection" 
type="MagentoFrameworkViewElementUiComponentDataProviderSearchResult">
    <arguments>
        <argument name="mainTable" xsi:type="string">intelipost_pickup_items</argument>
        <argument name="resourceModel" 
xsi:type="string">IntelipostPickupModelResourceItems</argument>
    </arguments>
</virtualType>

Error message:

(2020-08-24 21:09:44) report.CRITICAL: Type Error occurred when creating object:
IntelipostPickupModelResourceItemsCollectionInterceptor, Argument 5 passed to 
IntelipostPickupModelResourceItemsCollectionInterceptor::__construct() must implement 
interface MagentoFrameworkDBAdapterAdapterInterface or be null, string given, called in 
.../vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121 () ()