Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run composer require with Symfony 5.2.10 #83

Open
salmaomar opened this issue Jun 5, 2021 · 2 comments
Open

Error when run composer require with Symfony 5.2.10 #83

salmaomar opened this issue Jun 5, 2021 · 2 comments

Comments

@salmaomar
Copy link

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

`

@Zerewan
Copy link

Zerewan commented Mar 24, 2022

I have the same problem 😢

@Zerewan
Copy link

Zerewan commented Mar 24, 2022

Solution:

8a56e4a
8d848d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants