Decoupled Router TypeError

Created on 24 April 2023, almost 2 years ago

PHP Vers: 8.1.17
Drupal Vers: 9.5.8
next-drupal: "^1.4.0"

I have a problem: when I request a drupal node (in particular, an article) using the getResourceByPath method provided by the next-drupal library for Next.js i encounter an error. I report here the logs of my drupal site for the related error: "TypeError: Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber::__construct(): Argument #7 ($language_manager) must be of type Drupal\decoupled_router\EventSubscriber\LanguageManagerInterface, Drupal\language\ConfigurableLanguageManager given, called in /var/www/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber->__construct() (line 116 of /var/www/drupal/web/modules/contrib/decoupled_router/src/EventSubscriber/RouterPathTranslatorSubscriber.php)".

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
Production build 0.71.5 2024