No plugin ID specified for component with "" UUID

Created on 3 April 2023, about 2 years ago

My module rg_text_quality added to Complete split section. It is in development yet.

On drush cim on prod I have:
[error] Drupal\Core\Config\ConfigException: Errors occurred during import in Drush\Drupal\Commands\config\ConfigImportCommands->doImport() (line 310 of /DATA/home-sites/lom/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php).

In ConfigImportCommands.php line 324:
The import failed due to the following reasons:
core.entity_view_display.node.ads_buy.default: No plugin ID specified for component with "" UUID.

In core.entity_view_display.node.ads_buy.default.yml:

          4a39d109-dbb5-4026-a18b-af7c63da30ff:
            configuration:
              context_mapping: {  }
              formatter:
                settings: {  }
                third_party_settings: {  }
            additional: {  }

In config_split.patch.core.entity_view_display.node.ads_buy.default.yml:

adding:
  dependencies:
    config:
      - field.field.node.ads_buy.rg_text_quality_choice
    module:
      - rg_text_quality
  third_party_settings:
    layout_builder:
      sections:
        -
          components:
            4a39d109-dbb5-4026-a18b-af7c63da30ff:
              uuid: 4a39d109-dbb5-4026-a18b-af7c63da30ff
              region: content
              configuration:
                id: 'field_block:node:ads_buy:rg_text_quality_choice'
                label_display: '0'
                context_mapping:
                  entity: layout_builder.entity
                formatter:
                  type: rg_text_quality
                  label: above
                  settings: {  }
                  third_party_settings: {  }
              weight: 12
              additional: {  }
        -
          components:
            4a39d109-dbb5-4026-a18b-af7c63da30ff:
              uuid: 4a39d109-dbb5-4026-a18b-af7c63da30ff
              region: content
              configuration:
                id: 'field_block:node:ads_buy:rg_text_quality_choice'
                label_display: '0'
                context_mapping:
                  entity: layout_builder.entity
                formatter:
                  type: rg_text_quality
                  label: above
                  settings: {  }
                  third_party_settings: {  }
              weight: 12
              additional: {  }
        -
          components:
            4a39d109-dbb5-4026-a18b-af7c63da30ff:
              uuid: 4a39d109-dbb5-4026-a18b-af7c63da30ff
              region: content
              configuration:
                id: 'field_block:node:ads_buy:rg_text_quality_choice'
                label_display: '0'
                context_mapping:
                  entity: layout_builder.entity
                formatter:
                  type: rg_text_quality
                  label: above
                  settings: {  }
                  third_party_settings: {  }
              weight: 12
              additional: {  }
  content:
    rg_text_quality_choice:
      type: rg_text_quality
      label: above
      settings: {  }
      third_party_settings: {  }
      weight: 20
      region: content
removing: {  }
๐Ÿ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ท๐Ÿ‡ธSerbia super_romeo Belgrade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @super_romeo
  • ๐Ÿ‡ท๐Ÿ‡ธSerbia super_romeo Belgrade
  • ๐Ÿ‡จ๐Ÿ‡ดColombia angelgarciaco Bogotรก, Colombia

    I've the same issue. Any news about it?

  • ๐Ÿ‡ต๐Ÿ‡ฐPakistan hmdnawaz

    This error still exists in 2025.

    I'm also facing the issue. The error occurs in view modes that use the layout builder.

    Is there any workaround?

  • ๐Ÿ‡ต๐Ÿ‡ฐPakistan hmdnawaz

    When patch config split is created for the view mode with layout builder, the actual field display is moved to the patched version but the config left with this config

              437151a9-12cd-4d10-a578-08901f92206f:
                configuration:
                  context_mapping: {  }
                  formatter:
                    settings: {  }
                    third_party_settings: {  }
                additional: {  }
                third_party_settings: {  }
    

    Which doesn't contain an id so that is why we get that error. Just remove it from the actual config and the import will be fine

  • ๐Ÿ‡ช๐Ÿ‡ธSpain DaAira

    This solution worked for me:

    Config causing error in config_split.patch.core.entity_view_display.commerce_product.foo.teaser.yml file:

    e2a4c660-069b-463b-b165-3ae0ff019286:
    uuid: e2a4c660-069b-463b-b165-3ae0ff019286
    region: specifications
    configuration:
    id: 'field_block:commerce_product:foo:field_max_effic'
    label: 'Maximum Efficiency'
    label_display: '0'
    provider: layout_builder
    context_mapping:
    entity: layout_builder.entity
    view_mode: view_mode
    formatter:
    type: amara_number_decimal
    label: inline
    settings:
    thousand_separator: ''
    prefix_suffix: 1
    decimal_separator: .
    scale: '2'
    tag: span
    classes: ''
    allow_zero: 0
    third_party_settings: { }

    Working code:

    e2a4c660-069b-463b-b165-3ae0ff019286:
    uuid: e2a4c660-069b-463b-b165-3ae0ff019286
    region: specifications
    configuration: {}
    weight: 3
    additional: { }

Production build 0.71.5 2024