Sylius install crashes because "No identifier defined" Sylius install crashes because "No identifier defined" symfony symfony

Sylius install crashes because "No identifier defined"


Sylius uses Api-Platform, and very recently version 2.6 of Api-Platform was released.

Since this release, all API resources —including custom DTOs— need to have an "identifier", as other users are finding out.

There already exists a PR to fix this to make Sylius compatible with Api-Platform 2.6.0.

If you are installing a brand new project, you could do the following to install Sylius from scratch:

composer create-project sylius/sylius-standard app_dir --no-install --no-scripts cd app_dircomposer require api-platform/core:2.5.9 --no-update composer install

If you have an existing project you need to fix before updating (even one you've installed following the instructions on the previous step), you should add this to the conflict key of your composer.json:

{    "conflict":  {        "api-platform/core": ">=2.6.0"    }}

Although you should monitor the development of Sylius to remove this line once is no longer needed.


Sylius uses Api-Platform, and very recently version 2.6 ofApi-Platform was released.

Since this release, all API resources —including custom DTOs— need tohave an "identifier", as other users are finding out.

There already exists a PR to fix this to make Sylius compatible withApi-Platform 2.6.0.

If you are installing a brand new project, you could do the followingto install Sylius from scratch:

composer create-project sylius/sylius-standard app_dir --no-install--no-scripts cd app_dir composer require api-platform/core:2.5.9 --no-update composer install If you have an existing project you need to fix before updating, you could add this to the conflict key of yourcomposer.json:

{"conflict": {"api-platform": ">=2.6.0"} } Although you should monitor the development of Sylius to remove this line once is no longer needed.

I work for me, however there is an error on the conflict package for update

"conflict": {    "symfony/form": "4.4.11|4.4.12",    "api-platform/core": ">=2.6.0"},