作曲家更新期间找不到类错误

问题描述 投票:0回答:1

PHP 8.2.5 商店软件 6.4.20.2

在我的开发机器上,在

composer update
期间我收到以下错误,可能是什么原因? (我正在使用 Devenv)

> [ ! -f vendor/autoload.php ] || $PHP_BINARY bin/console system:update:prepare
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#44
  #message: """
    Attempted to load class "Docs" from namespace "Shopware\Docs".\n
    Did you forget a "use" statement for another namespace?
    """
  #code: 0
  #file: "./vendor/shopware/core/Kernel.php"
  #line: 111
  trace: {
    ./vendor/shopware/core/Kernel.php:111 { …}
    ./vendor/symfony/http-kernel/Kernel.php:386 { …}
    ./vendor/shopware/core/Kernel.php:187 { …}
    ./bin/console:74 {
      › $application = new Application($kernel->getKernel());\r
      › $kernel->getKernel()->boot();\r
      › $application->setName('Shopware');\r
    }
  }
}
2023-05-09T19:43:36+00:00 [critical] Uncaught Error: Class "Shopware\Docs\Docs" not found
Script [ ! -f vendor/autoload.php ] || $PHP_BINARY bin/console system:update:prepare handling the pre-update-cmd event returned with error code 255
composer-php shopware6
1个回答
0
投票

您需要完整的

shopware/platform
还是只需要您需要的部分,例如
shopware/core
shopware/administration
?

似乎文档包是预期的,但它不存在。 作为修复,您可以尝试从

Shopware\Docs
.
 中的活动包列表中删除 
/config/bundles.php

© www.soinside.com 2019 - 2024. All rights reserved.