ArgumentCountError: Too few arguments to function Drupal\sass_compile\Commands\SassCompileCommands::__construct()

Created on 17 May 2023, over 1 year ago

Problem/Motivation

When I install module and run drush cex then its giving below errors

[error]  ArgumentCountError: Too few arguments to function Drupal\sass_compile\Commands\SassCompileCommands::__construct(), 0 passed in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 1 expected in Drupal\sass_compile\Commands\SassCompileCommands->__construct() (line 31 of /app/web/modules/contrib/sass_compile/src/Commands/SassCompileCommands.php) #0 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\sass_compile\Commands\SassCompileCommands->__construct()
#1 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'sass_compile.co...')
#2 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(434): Drupal\Component\DependencyInjection\Container->get('sass_compile.co...', 3)
#3 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(273): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#4 /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'drush.command.s...')
#5 /app/vendor/drush/drush/src/Boot/DrupalBoot8.php(288): Drupal\Component\DependencyInjection\Container->get('drush.command.s...')
#6 /app/vendor/drush/drush/src/Boot/DrupalBoot8.php(251): Drush\Boot\DrupalBoot8->addDrupalModuleDrushCommands(Object(Drush\Boot\BootstrapManager))
#7 /app/vendor/drush/drush/src/Boot/BootstrapManager.php(291): Drush\Boot\DrupalBoot8->bootstrapDrupalFull(Object(Drush\Boot\BootstrapManager), NULL)
#8 /app/vendor/drush/drush/src/Boot/BootstrapManager.php(477): Drush\Boot\BootstrapManager->doBootstrap(5, 6, NULL)
#9 /app/vendor/drush/drush/src/Application.php(223): Drush\Boot\BootstrapManager->bootstrapMax()
#10 /app/vendor/drush/drush/src/Application.php(189): Drush\Application->bootstrapAndFind('cex')
#11 /app/vendor/symfony/console/Application.php(237): Drush\Application->find('cex')
#12 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /app/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /app/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#16 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#17 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#18 {main}. 

Steps to reproduce

1) Install Drupal 9/10 using composer.
2) Install this module using composer
3) Run drush cex command

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Rajan Kumar

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

Comments & Activities

Production build 0.71.5 2024