- Issue created by @SocialNicheGuru
- πΊπΈUnited States SocialNicheGuru
This is not working because it is too late in the process. autoload-test is fine, but the other is causing problems as commerce is not autoloaded.
PHP Fatal error: Uncaught Error: Class "Drupal\commerce\Entity\CommerceContentEntityBase" not found in -drupal-10.4.x/html/modules/contrib/commerce_recruiting/src/Entity/Campaign.php:76
When I install modules, I get this error.
It is because of the autoload in composer.json.
I haven't installed commerce yet.
Commerce_recruiting extends commerce: Campaign extends CommerceContentEntityBase but Commerce isn't available
remove autoloaders from composer.json
"autoload": {
"psr-4": {
"Drupal\\commerce_recruiting\\": "./src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\commerce_recruiting\\": "./tests/src"
}
},
Active
8.2
Code
This is not working because it is too late in the process. autoload-test is fine, but the other is causing problems as commerce is not autoloaded.