BitBagCommerce / SyliusVueStorefrontPlugin

Sylius plugin integrating Sylius with Vue Storefront
45 stars 24 forks source link

Error adding vuestorefront-plugin #130

Closed h4xhor closed 1 year ago

h4xhor commented 3 years ago

Hi Sylius community,

After a fresh install of Sylius, when I try to install the vuestorefront-plugin using:

$ composer require bitbag/vuestorefront-plugin:v2.1.1

I get the error:

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 CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:
!!                                                                                 
!!    The service "bitbag_sylius_vue_storefront_plugin.api.cart.create_cart" has   
!!    a dependency on a non-existent service "bitbag_vue_storefront_plugin.comman  
!!    d_bus".                                                                      
!!                                                                                 
!!  
!!  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-update-cmd

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Any help much appreciated. Thanks.

silcki commented 3 years ago

@h4xhor had the same problem I solved this issue by running the composer without execution scripts section composer require bitbag/vuestorefront-plugin:v2.1.1 --no-scripts and after that, I ran composer update nothing for executing the scripts section

silcki commented 3 years ago

and try this https://github.com/BitBagCommerce/SyliusVueStorefrontPlugin/issues/94

h4xhor commented 3 years ago

Hi @silcki, thanks so much. It worked!