SkipTheDragon/inertia-bundle

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

Opened this issue · 2 comments

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?

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

Hi @SkipTheDragon

I'm running into the same issue, with PHP 8.3 and Symfony 7.1.
I followed the basic installation guide and ran into the same error as mentioned by @fbnlsr.

You mentioned mercuryseries's inertia bundle repo, but this mentiones the same installation guide, ending up at the same error.

Am I missing something?
Thanks in advance.