Sylius / PluginSkeleton

Skeleton for starting Sylius plugins.
https://sylius.com/plugins/
73 stars 62 forks source link

The service "sylius.fixture.order" has a dependency on a non-existent service "sylius_abstraction.state_machine" #411

Open Dev-patel1882 opened 2 months ago

Dev-patel1882 commented 2 months ago

The service "sylius.fixture.order" has a dependency on a non-existent service "sylius_abstraction.state_machine".

When I'm setting up the Sylius plugin skeleton, I'm facing this error. I've created plugin skeletons before, but this error didn't appear earlier. I think it might be a bug.

The error "The service 'sylius.fixture.order' has a dependency on a non-existent service 'sylius_abstraction.state_machine'" is preventing me from running any PHP commands.

Screenshot from 2024-04-30 12-08-25

diimpp commented 2 months ago

Related https://github.com/Sylius/Sylius-Standard/issues/976

Prometee commented 2 months ago

@Dev-patel1882, you can simply add the missing bundle to the file tests/Application/config/bundles.php : https://github.com/Sylius/PluginSkeleton/blob/1.12/tests/Application/config/bundles.php The missing bundle is this one : https://github.com/Sylius/Sylius-Standard/blob/1.13/config/bundles.php#L9

Dev-patel1882 commented 2 months ago

Thanks, @Prometee , it works.