Search code examples
shopware6

Error when installing a Shopware 6 app via composer


This is a follow up of How to install a Shopware 6 app in a composer-managed installation and deploy process? - since the original question it became possible to install apps via composer which is great!

But I am getting an error:

composer require store.shopware.com/swagcustomnotification # works now

$ bin/console app:refresh

 1 apps will be installed, 0 apps will be updated and 0 apps will be deleted.
Do you want to continue? (yes/no) [yes]:
 > y

                                                                                                                        
 [ERROR] The app "SwagCustomNotification" is invalid:                                                                   
                                                                                                                        
         The technical app name "SwagCustomNotification" in the "manifest.xml" and the folder name must be equal.                                                                                                                      

The folder is vendor/store.shopware.com/swagcustomnotification so the error message is correct.

How to fix this?

I am on Shopware 6.5.2.1

EDIT: mainfest.xml:

<name>SwagCustomNotification</name>

So this differs of course from the lower case folder name in the vendor/.


Solution

  • I was told via Twitter that this is a bug which is fixed in trunk / probably released in the next Shopware 6.5 version

    The correct issue is https://issues.shopware.com/issues/NEXT-29065