What command are you running?
28th Sep - Can't install nor update Laravel
Hey, it's just happened a few minutes ago. Suddenly I can't update nor install a Laravel project. I thought it was a problem in my localhost but then I tried to deploy in a brand new Ubuntu server and still the same error. Not sure if it's only me or anyone else faces this problem.
Class Symfony\Component\Translation\Tests\Loader\IcuResFileLoaderTest located in ./vendor/symfony/translation/IcuResFileLoaderTest.php does not comply with psr-4 autoloading standard. Skipping.
Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi
Error
Class "Symfony\Component\Translation\Loader\ArrayLoader" not found
at vendor/nesbot/carbon/src/Carbon/Translator.php:80 76▕ public function __construct($locale, Translation\Formatter\MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false) 77▕ { 78▕ $this->initializing = true; 79▕ $this->directories = [DIR.'/Lang']; ➜ 80▕ $this->addLoader('array', new Translation\Loader\ArrayLoader()); 81▕ parent::__construct($locale, $formatter, $cacheDir, $debug); 82▕ $this->initializing = false; 83▕ } 84▕
+13 vendor frames
14 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}()
+5 vendor frames
20 artisan:37 Illuminate\Foundation\Console\Kernel::handle() Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Well, just a tmp hack to continue coding till Symfony or Laravel fix this problem. Just add this to your composer.json file
"require": {
.....
"symfony/translation": "5.3.7"
}
Please or to participate in this conversation.