laravel-orion icon indicating copy to clipboard operation
laravel-orion copied to clipboard

artisan orion:specs does not work

Open tndaniel05 opened this issue 11 months ago • 2 comments

php artisan orion:specs

   ERROR  There are no commands defined in the "orion" namespace. 

This is what I got when I try to generate the specs. Can you help me what's wrong? Thank you.

tndaniel05 avatar Feb 28 '24 13:02 tndaniel05

Check your composer.json file. Are you using Orion V2? I've noticed that sometimes, even on a new project, orion installs V1 by default.

ldiebold avatar Mar 04 '24 23:03 ldiebold

I thought it's the latest version because composer upgrade did not do anything. But you are right, in the composer.json it was on V1.

The issue was the following:

Problem 1
    - Root composer.json requires tailflow/laravel-orion ^2.22.1 -> satisfiable by tailflow/laravel-orion[2.22.1].
    - tailflow/laravel-orion 2.22.1 requires symfony/yaml ^5.3|^6.0 -> found symfony/yaml[v5.3.0, ..., v5.4.35, v6.0.0, ..., v6.4.3] but the package is fixed to v7.0.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

So I had to downgrade symfony/yaml to 6.4.3 to install V2 Orion.

Thank you for the help!

tndaniel05 avatar Mar 11 '24 09:03 tndaniel05