小编Mon*_*eza的帖子

Sylius 安装崩溃,因为“未定义标识符”

我正在尝试在 ubuntu 上安装 Sylius 1.8,并且在运行时按照安装指南进行操作,但出现composer install以下错误:

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!   // Clearing the cache for the prod environment with debug                      
!!   // false                                                                       
!!  
!!  
!!  In FileLoader.php line 180:
!!                                                                                 
!!    No identifier defined "Sylius\Bundle\ApiBundle\Command\RegisterShopUser". Y  
!!    ou should add #[\ApiPlatform\Core\Annotation\ApiProperty(identifier: true)]  
!!    " on the property identifying the resource." in . (which …
Run Code Online (Sandbox Code Playgroud)

php symfony sylius api-platform.com

5
推荐指数
1
解决办法
612
查看次数

标签 统计

api-platform.com ×1

php ×1

sylius ×1

symfony ×1