Hi! Thanks for clicking on this discussion!!
The issue
I've built an extension where every discussion page has a button that allows you to generate a summary of the entire conversation (the everyone's posts for that page) via OpenAI's API. My GitHub link is here.
The local version of my extension works through the local "packages" folder and added to composer.json via this command:
composer require cgu2022/flarum-hello-world *@dev
However, with the published version of my extension (without the "*@dev" command), when I click on the generate summary button, I get this error:
Next Illuminate\Contracts\Container\BindingResolutionException: Target class [CGU2022\CS278Extension\Api\GenerateSummaryController] does not exist. in C:\Projects\cs278-flarum\vendor\illuminate\container\Container.php:879
Stack trace:
#0 C:\Projects\cs278-flarum\vendor\illuminate\container\Container.php(758): Illuminate\Container\Container->build()
#1 C:\Projects\cs278-flarum\vendor\illuminate\container\Container.php(694): Illuminate\Container\Container->resolve()
. . .
and I've verified my file structure is what I intended, I would imagine it's correct since my extension works locally. I've also tried "composer dump-autoload," but it doesn't help.
Anyone encountered a similar error like this before or have any insights?