The error occurs during enabling the module and due to the node wasn't enabled previously or because it's not the dependency of gdpr. Here is the stack trace:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node" entity type does not exist. in /var/www/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php:133 [error]
Stack trace:
#0 /var/www/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php(233): Drupal\Core\Entity\EntityTypeManager->getDefinition('node')
#1 /var/www/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php(169): Drupal\Core\Entity\EntityTypeManager->getHandler('node', 'storage')
#2 /var/www/docroot/core/lib/Drupal.php(463): Drupal\Core\Entity\EntityTypeManager->getStorage('node')
#3 /var/www/docroot/modules/contrib/gdpr/gdpr.module(332): Drupal::entityQuery('node')
#4 /var/www/docroot/modules/contrib/gdpr/gdpr.module(34): gdpr_search_content()
#5 [internal function]: gdpr_checklistapi_checklist_info()
#6 /var/www/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('gdpr_checklista...', Array)
#7 /var/www/docroot/modules/contrib/checklistapi/src/Routing/ChecklistapiRoutes.php(20): Drupal\Core\Extension\ModuleHandler->invokeAll('checklistapi_ch...')
#8 [internal function]: Drupal\checklistapi\Routing\ChecklistapiRoutes->routes()
#9 /var/www/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php(146): call_user_func(Array)
#10 /var/www/docroot/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#11 /var/www/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(302): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#12 /var/www/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, false)
#13 /var/www/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php(794): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, false)
#14 /var/www/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php(559): Drupal\Core\Config\ConfigImporter->processExtension('module', 'install', 'gdpr')
#15 /var/www/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php(496): Drupal\Core\Config\ConfigImporter->processExtensions(Array)
#16 /var/www/docroot/core/includes/install.core.inc(2335): Drupal\Core\Config\ConfigImporter->doSyncStep('processExtensio...', Array)
#17 /var/www/docroot/core/includes/batch.inc(252): install_config_import_batch_process(Object(Drupal\Core\Config\ConfigImporter), 'processExtensio...', Array)
#18 /var/www/docroot/core/includes/form.inc(874): _batch_process()
#19 /var/www/docroot/core/includes/install.core.inc(629): batch_process(Object(Drupal\Core\Url), Object(Drupal\Core\Url))
#20 /var/www/docroot/core/includes/install.core.inc(550): install_run_task(Array, Array)
#21 /var/www/docroot/core/includes/install.core.inc(121): install_run_tasks(Array)
#22 /usr/share/composer/vendor/drush/drush/includes/drush.inc(727): install_drupal(Object(Composer\Autoload\ClassLoader), Array)
#23 /usr/share/composer/vendor/drush/drush/includes/drush.inc(712): drush_call_user_func_array('install_drupal', Array)
#24 /usr/share/composer/vendor/drush/drush/commands/core/drupal/site_install.inc(82): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array)
#25 /usr/share/composer/vendor/drush/drush/commands/core/site_install.drush.inc(255): drush_core_site_install_version('pfqaplatform_pr...', Array)
#26 /usr/share/composer/vendor/drush/drush/includes/command.inc(422): drush_core_site_install('pfqaplatform_pr...')
#27 /usr/share/composer/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#28 /usr/share/composer/vendor/drush/drush/includes/command.inc(199): drush_command('pfqaplatform_pr...')
#29 /usr/share/composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#30 /usr/share/composer/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#31 /usr/share/composer/vendor/drush/drush/drush.php(12): drush_main()
#32 {main}
Comments
Comment #2
br0kenComment #3
baluertlComment #4
lbesenyei commentedComment #7
lbesenyei commentedThank you @BR0kEN for pointing this out.
I have modified the code to check whether the node module is enabled or not.