Closed (works as designed)
Project:
Kint
Version:
2.1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2025 at 20:57 UTC
Updated:
17 Oct 2025 at 14:26 UTC
Jump to comment: Most recent
When trying to install the module I recieved this error.
The website encountered an unexpected error. Try again later.
Symfony\Component\DependencyInjection\Exception\LogicException: Service 'kint.twig_extension' for consumer 'twig' does not implement Twig\Extension\ExtensionInterface. in Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass() (line 184 of core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php).
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass() (Line: 118)
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process() (Line: 80)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 768)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1449)
Drupal\Core\DrupalKernel->compileContainer() (Line: 972)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 515)
Drupal\Core\DrupalKernel->boot() (Line: 739)
Drupal\Core\DrupalKernel->handle() (Line: 19)
I upgraded devel to 5.4.x, uninstalled devel_kint_extras, and install kint-kint:^2.1
Comments
Comment #2
jnvsor commentedHi, can you tell me what version of
kint-php/kint-twigandtwig/twigare installed according to your composer.lock?Comment #3
jalite1991 commentedSure thing,
kint-php/kint-twig:
6.0
twig/twig:
v3.21.1
Comment #4
jalite1991 commentedUpdate, After completely removing kint-kint and devel and reinstalling the packages, the modules installed just fime and with no errors. Sorry for the inconvience.
Comment #5
jalite1991 commented