I'm trying to install Sylius 1.8 on ubuntu and I follow installation guide when I run composer install
I get following error:
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 is being imported
!! from "/srv/sylius/vendor/sylius/sylius/src/Sylius/Bundle/ApiBundle/Resource
!! s/config/routing.yml"). Make sure there is a loader supporting the "api_pla
!! tform" type.
!!
!!
!! In IdentifiersExtractor.php line 65:
!!
!! No identifier defined "Sylius\Bundle\ApiBundle\Command\RegisterShopUser". Y
!! ou should add #[\ApiPlatform\Core\Annotation\ApiProperty(identifier: true)]
!! " on the property identifying the resource."
!!
!!
!! cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
!!
!!
Script @auto-scripts was called via post-install-cmd
I have also used Sylius docker but the result was the same, it seems there is an issue with Api-Platform.