laravel 11 (라라벨 11) 에서 Call to a member function make() on null

new
$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Error 

  Call to a member function make() on null

  at vendor\laravel\framework\src\Illuminate\Console\Command.php:173
    169▕      */
    170▕     #[\Override]
    171▕     public function run(InputInterface $input, OutputInterface $output): int
    172▕     {
  ➜ 173▕         $this->output = $output instanceof OutputStyle ? $output : $this->laravel->make(
    174▕             OutputStyle::class, ['input' => $input, 'output' => $output]
    175▕         );
    176▕ 
    177▕         $this->components = $this->laravel->make(Factory::class, ['output' => $this->output]);

  1   vendor\symfony\console\Application.php:1117
      Illuminate\Console\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

  2   vendor\symfony\console\Application.php:356
      Symfony\Component\Console\Application::doRunCommand(Object(Illuminate\Foundation\Console\PackageDiscoverCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

-------=-----------
실제 문제 명령어
php artisan package:discover --ansi

-------=------------
원인은
symfony/console 이고
7.4 로 올라가면 문제가 발생된다.

composer.json 에서
"require": {
        "symfony/console": "<7.4"      <--- 제한 조건 추가
    },

라라벨 11에서 관련 이슈가 해결되면, symfony/console 제한 조건 풀면 된다
라라벨 12에서는 문제 없다는 글이 있다.
댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
제목 작성자 날짜
공대여자
공대여자
mins01
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자