youshido-php/GraphQLBundle

Error when run composer require with Symfony 5.2.10

salmaomar opened this issue · 2 comments

I tired to install the bundle with a fresh empty project Symfony version 5.2.10.
when i ran this command
composer require youshido/graphql-bundle

i got this error

  • Configuring youshido/graphql-bundle (>=v1.4.1): From auto-generated recipe
    Executing script cache:clear [KO]
    [KO]
    Script cache:clear returned with error code 255
    !! ArgumentCountError {#4504
    !! #message: "Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in /var/www/html/testSymfony/vendor/youshido/graphql-bundle/DependencyInjection/Configuration.php on line 21 and at least 1 expected"
    !! #code: 0
    !! #file: "./vendor/symfony/config/Definition/Builder/TreeBuilder.php"
    !! #line: 26
    !! trace: {
    !! ./vendor/symfony/config/Definition/Builder/TreeBuilder.php:26 { …}
    !! ./vendor/youshido/graphql-bundle/DependencyInjection/Configuration.php:21 { …}
    !! ./vendor/symfony/config/Definition/Processor.php:50 { …}
    !! ./vendor/symfony/dependency-injection/Extension/Extension.php:111 { …}
    !! ./vendor/youshido/graphql-bundle/DependencyInjection/GraphQLExtension.php:25 { …}
    !! ./vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php:76 { …}
    !! ./vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php:39 { …}
    !! ./vendor/symfony/dependency-injection/Compiler/Compiler.php:91 { …}
    !! ./vendor/symfony/dependency-injection/ContainerBuilder.php:736 { …}
    !! ./vendor/symfony/http-kernel/Kernel.php:541 { …}
    !! ./vendor/symfony/http-kernel/Kernel.php:780 { …}
    !! ./vendor/symfony/http-kernel/Kernel.php:121 { …}
    !! ./vendor/symfony/framework-bundle/Console/Application.php:168 { …}
    !! ./vendor/symfony/framework-bundle/Console/Application.php:74 { …}
    !! ./vendor/symfony/console/Application.php:166 { …}
    !! ./bin/console:43 {
    !! › $application = new Application($kernel);
    !! › $application->run($input);
    !! ›
    !! }
    !! }
    !! }
    !! 2021-06-05T15:03:43+02:00 [critical] Uncaught Error: Too few arguments to function Symfony\Component\Config\Definition\Builder\TreeBuilder::__construct(), 0 passed in /var/www/html/testSymfony/vendor/youshido/graphql-bundle/DependencyInjection/Configuration.php on line 21 and at least 1 expected
    !!
    Script @auto-scripts was called via post-update-cmd

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
`
Screenshot from 2021-06-05 15-08-18

`

I have the same problem 😢

Solution:

8a56e4a
8d848d0