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}}
    -
목록형 📷 갤러리형
제목
[기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js)
유용한 리눅스(LINUX) 명령어
[공지] 기술 게시판
4.26
4.27
4.28
4.29
4.30
5.1
5.2
5.3
5.4
5.5
5.7
5.8
5.9
5.10
5.13
5.14
5.15
5.16
5.17
5.19
5.21
5.22
5.23
5.24
5.25
5.26
5.27
5.28
5.29
5.30
5.31
6.1
6.2
6.3
6.4
6.5
6.6