SkipTheDragon / inertia-bundle

🧰 Inertia.js server-side adapter for Symfony 5, 6 and 7.
https://projects.wyverr.com/
MIT License
18 stars 1 forks source link

Error upon install: "No commands defined in the "inertia" namespace" #9

Open fbnlsr opened 6 days ago

fbnlsr commented 6 days ago

Upon initializing a new Symfony 7.1 project (using DDEV and PHP 8.2 as my development environment), I ran composer require skipthedragon/inertia-bundle per the documentation to install Inertia.

I then was offered the possibility to run the bundle's recipe, which I said yes to. It then proposed me to configure the stack I wanted, so I ran the command symfony console inertia:install vue --ssr --bundler=vite only to be faced with the following error:

There are no commands defined in the "inertia" namespace.

Is there anything I forgot to check maybe?

SkipTheDragon commented 6 days ago

Hi,

You did nothing wrong.

I didn't update the recipe's post-install instructions to remove the commands. The commands were supposed to be added alongside the recipe, but I shifted the focus to more critical features/fixes.

I would appreciate it if someone could take the time to make a pull request implementing these commands.

For now, you can take inspiration from mercuryseries's inertia bundle repo on how to install & start ssr with vite