Make jsonapi a requirement for consumers

Created on 27 April 2023, over 1 year ago
Updated 15 March 2024, 8 months ago

Problem/Motivation

"PHP message: Error: Class "Drupal\jsonapi\Routing\Routes" not found in mysite/html/modules/contrib/consumers/src/ConsumerRouteEnhancer.php on line 50

Is jsonapi supposed to be a requirement for the module

Steps to reproduce

I was trying to install simple_oauth which requires consumers on a brand new site.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

  • Issue created by @SocialNicheGuru
  • πŸ‡©πŸ‡ͺGermany IT-Cru Munich

    We are using Consumer 8.x-1.17 with GraphQL 4.x module without enabled JsonAPI module and we do not run into such an issue yet.

    I think both JsonAPI and GraphQL variants should be supported in a proper way without a hard dependency if somehow possible, because it is not really required to have JsonAPI module installed when a project is using GraphQL.

  • Status changed to Closed: duplicate 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States eojthebrave Minneapolis, MN

    It looks like you're probably using a patch from this issue πŸ› Cacheability issue when using _consumer_id query in JsonApi responses. Needs work which adds the ConsumeRouteEnhancer class that is causing this error. I'm going to close this as a duplicate and we can sort of the error in parent issue.

Production build 0.71.5 2024