What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello Team, I was trying to use Spryks, but when running some of them like AddGlueBasicStructure, an

U04949W9DJ8
U04949W9DJ8 Posts: 19 🧑🏻‍🚀 - Cadet
edited January 2023 in Help

Hello Team, I was trying to use Spryks, but when running some of them like AddGlueBasicStructure, an error like this would pop up.
Error - Exception: Class 'Doctrine\Common\Inflector\Inflector' not found
in /data/vendor/spryker-sdk/spryk/src/SprykerSdk/Spryk/Model/Spryk/Filter/SingularizeFilter.php (31)
Command: /data/vendor/bin/console spryk:run AddGlueBasicStructure

Does anyone have any solutions to this?

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    Hey, which version of the spryk package are you using?

  • U04949W9DJ8
    U04949W9DJ8 Posts: 19 🧑🏻‍🚀 - Cadet

    Version 0.2.9

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    This seems to be quite old, it is currently at version 0.4.7 - Maybe updating helps: https://github.com/spryker-sdk/spryk/tags

  • U04949W9DJ8
    U04949W9DJ8 Posts: 19 🧑🏻‍🚀 - Cadet

    Would you mind letting me know how to update?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,051 ⚖️ - Guardians (admin)

    Hey, it is likely not straight forward since its version is locked because of another module.

    So if you check with docker/sdk cli composer why spryker-sdk/spryk it will likely tell you that you have version constraints with spryker-sdk/spryk-gui and spryker-feature/development-tools.
    spryk-gui is anyway deprecated and a constraint of spryker-feature/development-tools. So in the end you just have to resolve the constraint of spryker-feature/development-tools.

    This you can do by removing spryker-feature/development-tools from your composer.json but add its constraints manually to it. Something like that: https://github.com/spryker-feature/development-tools/blob/master/composer.json