Fatal error after installing Tool API on drupal/core:^10.3
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3558325. --> Reported by: [eojthebrave](https://www.drupal.org/user/79230) Related to !61 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The module's .info.yml file says it's compatible with drupal/core:^10.3 but in my testing this is not true. The code in <code>\Drupal\tool\Normalizer\ContextDefinitionNormalizer</code>, and <code>\Drupal\tool\Normalizer\MapDefinitionNormalizer</code> uses <code>use Drupal\serialization\Normalizer\SchematicNormalizerTrait</code> which doesn't exist in Drupal 10.x. See <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-13"><a href="https://www.drupal.org/project/drupal/issues/3031367" title="Status: Needs work">#3031367: Generate JSON schema for content entity types</a></span>.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ol> <li>Download the module into a Drupal ^10.3 site</li> <li>Install tools module</li> <li>Navigate to any page on your site and get a PHP fatal error:</li> </ol> <p><code>( ! ) Fatal error: Trait "Drupal\serialization\Normalizer\SchematicNormalizerTrait" not found in /var/www/html/web/modules/contrib/tool/src/Normalizer/ContextDefinitionNormalizer.php on line 27</code></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue