API Platform version(s) affected:
"api-platform/api-pack": "^1.1",
"webonyx/graphql-php": "^14.0"
Description
When I want to run the GraphQL playground I get the error below:
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "Attempted to load class "Debug" from namespace "GraphQL\Error".\nDid you forget a "use" statement for e.g. "Symfony\Component\ErrorHandler\Debug" or "Doctrine\Common\Util\Debug"?",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/srv/api/vendor/api-platform/core/src/GraphQl/Action/EntrypointAction.php",
"line": 49,
"args": []
},
Possible Solution
At line 14 in the Class vendor/api-platform/core/src/GraphQl/Action/EntrypointAction.php
use GraphQL\Error\Debug;
# Replaced by
use GraphQL\Error\DebugFlag;
Additional Context

API Platform version(s) affected:
Description
When I want to run the GraphQL playground I get the error below:
"type": "https://tools.ietf.org/html/rfc2616#section-10",
"title": "An error occurred",
"detail": "Attempted to load class "Debug" from namespace "GraphQL\Error".\nDid you forget a "use" statement for e.g. "Symfony\Component\ErrorHandler\Debug" or "Doctrine\Common\Util\Debug"?",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/srv/api/vendor/api-platform/core/src/GraphQl/Action/EntrypointAction.php",
"line": 49,
"args": []
},
Possible Solution
At line 14 in the Class vendor/api-platform/core/src/GraphQl/Action/EntrypointAction.php
Additional Context