Skip to content

fatal error in GraphQL Types #36170

@RikvdHeijden

Description

@RikvdHeijden

Preconditions and environment

Version 2.4.5, don't know if other versions are currently affected

Steps to reproduce

Update your local composer and run di:compile.

Expected result

A successful di:compile

Actual result

The message will be something like: Fatal error: Type of Magento\Framework\GraphQl\Schema\Type\StringType::$name must be string (as in class GraphQL\Type\Definition\StringType)

Additional information

This is caused by an dependency of magento/framework: webonyx/graphql-php which created a BC incompatible version 14.11.7.

A temporary workaround is pinning the version to 14.11.6 in the root composer.json.

An issue has already been opened in the library: webonyx/graphql-php#1221

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions