Closed (fixed)
Project:
Component
Version:
1.0.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jul 2021 at 18:33 UTC
Updated:
15 Jul 2022 at 13:44 UTC
Jump to comment: Most recent
Enabling Component on D9 will WSOD your site because the plugin discovery system will throw "Class does not exist" errors.
Enable the Component module.
Update the namespace wherever it's referenced inside the module.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rlnorthcuttComment #4
rlnorthcuttComment #5
japerryThis is incorrect. 'Component' is a namespace used by Drupal Core. #3294843: Error: Class "\Drupal\Component\ComponentDiscovery" not found reverts this issue.
For more information about best practices here, reference this: https://www.drupal.org/docs/develop/standards/psr-4-namespaces-and-autol...
Likely the original problem stems from an extra \ in front of the services yml, as well as the namespace of DeriverBase was not included properly until commit 37587c91
This module is on shaky ground with Drupal 8+ . It uses the same namespace, albeit lowercase, as core. little bugs that are simply 'nits' in other modules are going to cause some pretty catastrophic failures with this module if not caught.
Comment #6
japerryComment #7
japerryComment #8
avpadernoIt's probably better to create a new project with a better machine name, change all the code to use the new machine name in namespaces, and commit the code in the new project repository.