Magento

Magento 2: The „componentType“ configuration parameter is required for the „…“ component. when adding a design config option

Icon NetzkollektivVon Dominik Krebs, Geschäftsführer, CTO

When adding a design config option to Magento 2 Admin and you get the error message

The „componentType“ configuration parameter is required for the „…“ component.

make sure, that all the field names in your configuration match:

# grep -r email_logo_height vendor/magento/module-*
vendor/magento/module-email/etc/di.xml:                <item name="email_logo_height" xsi:type="array">
vendor/magento/module-email/view/adminhtml/ui_component/design_config_form.xml:            <field name="email_logo_height" formElement="input">
vendor/magento/module-email/view/adminhtml/ui_component/design_config_form.xml:                    <dataScope>email_logo_height</dataScope>

Magento merges Metadata from di.xml into the UiComponent configuration. The error message means Magento did not find the correct node in di.xml, and therefore creates another field. The newly created field does not have an equivalent in the design_config_form.xml and finally leads to the error.

Magento Agentur gesucht?

Sie sind auf der Suche nach einer zuverlässigen Agentur, die sich mit Magento auskennt und Ihnen unkompliziert durch den Online-Shop Alltag hilft? NETZKOLLEKTIV betreut Händler seit über 10 Jahren. Rufen Sie uns an!

Jetzt unverbindlich über mein Projekt sprechen