Account created on 24 November 2021, about 3 years ago
#

Recent comments

It seems to me that is a problem with the dynamic_entity_reference module, since they have this code in their 'DynamicEntityReference.php' file:

 * @DataType(
 *   id = "dynamic_entity_reference",
 *   label = @Translation("Dynamic entity reference"),
 *   definition_class = "\Drupal\dynamic_reference\DataDynamicReferenceDefinition"
 * )

If i manually edit this and clear caches, the error is gone, but then a different error occurs:

Drupal\Component\Plugin\Exception\PluginNotFoundException
The "dynamic_entity" plugin does not exist. Valid plugin IDs for Drupal\Core\TypedData\TypedDataManager are: dynamic_entity_reference, ...

Drupal\Core\Plugin\DefaultPluginManager:53
doGetDefinition
Drupal\Core\Plugin\DefaultPluginManager:25
getDefinition
Drupal\Core\TypedData\TypedDataManager: 115
createDataDefinition
Drupal\dynamic_entity_reference\DataDynamicReferenceDefinition: 31
create
Drupal\Core\TypedData\DataReferenceDefinition: 42
createFromDataType
Drupal\Core\TypedData\TypedDataManager: 120
createDataDefinition
Drupal\graphql_core_schema\EntitySchemaBuilder: 879
getDataPropertyType
Drupal\graphql_core_schema\EntitySchemaBuilder: 456
getFieldItemType
Drupal\graphql_core_schema\EntitySchemaBuilder: 387
getFieldItemListType
Drupal\graphql_core_schema\EntitySchemaBuilder: 766
createEntityFields
Drupal\graphql_core_schema\EntitySchemaBuilder: 532
addContentEntityType
Drupal\graphql_core_schema\EntitySchemaBuilder: 586
generateTypeForEntityType
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema: 176
getSchemaDefinition
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema: 381
getSchemaDocument
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema: 303
getSchema
...

It seems to me that is a problem with the dynamic_entity_reference module, since they have this code in their 'DynamicEntityReference.php' file:

 * @DataType(
 *   id = "dynamic_entity_reference",
 *   label = @Translation("Dynamic entity reference"),
 *   definition_class = "\Drupal\dynamic_reference\DataDynamicReferenceDefinition"
 * )

If i manually edit this and clear caches, the error is gone, but then a different error occurs:

Drupal\Component\Plugin\Exception\PluginNotFoundException
The "dynamic_entity" plugin does not exist. Valid plugin IDs for Drupal\Core\TypedData\TypedDataManager are: dynamic_entity_reference, ...

Drupal\Core\Plugin\DefaultPluginManager:53
doGetDefinition
Drupal\Core\Plugin\DefaultPluginManager:25
getDefinition
Drupal\Core\TypedData\TypedDataManager: 115
createDataDefinition
Drupal\dynamic_entity_reference\DataDynamicReferenceDefinition: 31
create
Drupal\Core\TypedData\DataReferenceDefinition: 42
createFromDataType
Drupal\Core\TypedData\TypedDataManager: 120
createDataDefinition
Drupal\graphql_core_schema\EntitySchemaBuilder: 879
getDataPropertyType
Drupal\graphql_core_schema\EntitySchemaBuilder: 456
getFieldItemType
Drupal\graphql_core_schema\EntitySchemaBuilder: 387
getFieldItemListType
Drupal\graphql_core_schema\EntitySchemaBuilder: 766
createEntityFields
Drupal\graphql_core_schema\EntitySchemaBuilder: 532
addContentEntityType
Drupal\graphql_core_schema\EntitySchemaBuilder: 586
generateTypeForEntityType
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema: 176
getSchemaDefinition
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema: 381
getSchemaDocument
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema: 303
getSchema
...

I've got the same error. It is with a dynamic_entity_reference when it goes wrong. The error talks about 'dynamic_entity' and that is where it goes wrong. The module is not 'dynamic_entity', but 'dynamic_entity_reference'.

Production build 0.71.5 2024