TypeError: Argument 4 passed to Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository::__construct() must implement interface Drupal\Core\Entity\EntityRepositoryInterface, instance of Drupal\Core\Cache\MemoryBackend given, called in C:\xampp\apps\drupal\htdocs\core\lib\Drupal\Component\DependencyInjection\Container.php on line 286 in Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository->__construct() (line 76 of C:\xampp\apps\drupal\htdocs\modules\jsonapi_extras\src\ResourceType\ConfigurableResourceTypeRepository.php).
Drush command terminated abnormally due to an unrecoverable error.

---

Drupal version : 8.6.1
Site URI : ***
Database driver : mysql
Database hostname : ***
Database port : ***
Database username : ***
Database name : ***
Database : Connected
Drupal bootstrap : Correctament
Drupal user :
Default theme : bartik
Administration theme : seven
PHP configuration : C:\php-7.2.10-nts-win32-vc15-x64\php.ini
PHP OS : WINNT
Drush script : C:/****/apps/drupal/drush/drush.php
Drush version : 8.1.17
Drush temp directory : C:\****\Temp
Drush configuration : C:\****\apps\drupal\drush\drushrc.php
Drush alias files :
Install profile : standard
Drupal root : C:\****\apps\drupal\htdocs
Drupal Settings File : sites/default/settings.php
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : C:\****\tmp
Sync config path : sites/default/files/****/sync

Comments

shadowv3 created an issue. See original summary.

kil’s picture

I can confirm this error. Did a new installation and used JSON API 8.x-2.0-beta2 together with JSON API Extras 8.x-2.x-dev (16 Sep 2018) (tried it before with JSON API Extras 8.x-2.9, tath also didn't work). It breaks the site (I even had trouble to do a drush pmu jsonapi_extras, where the above mentioned error shows up). I don't have troubles if I use JSON API 8.x-1.23 together with JSON API Extras 8.x-2.x-dev (it does not work with 8.x-2.9). Seems that something in JSON API 8.x-2.x breaks JSON API Extras.

wim leers’s picture

Correct, jsonapi_extras is not yet compatible with jsonapi 2.x. Expect significant progress soon.

rahulchauhan_ec3’s picture

Same issue install jsonapi_extras throwing error
Uncaught TypeError: Argument 4 passed to Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository::__construct() must implement interface Drupal\Core\Entity\EntityRepositoryInterface, instance of Drupal\Core\Cache\MemoryBackend given, called in /var/www/virtuald8/core/lib/Drupal/Component/DependencyInjection/Container.php on line 286 and defined in /var/www/virtuald8/modules/contrib/jsonapi_extras/src/ResourceType/ConfigurableResourceTypeRepository.php:76

e0ipso’s picture

Status: Active » Closed (outdated)

I don't think this is an issue anymore. 2.11 should be compatible with both JSON:API 1.x and 2.x.

From now on Extras 3.x will only support JSON:API 2.x.