kirschbaum-development / nova-mail

A Laravel Nova action that provides a mail sending form for any resource
MIT License
73 stars 25 forks source link

can't remove through composer remove or from removing it from composer.json #59

Open jeremiahsherrill opened 1 year ago

jeremiahsherrill commented 1 year ago

Attempted to remove as I found it doesn't work for my use case, did composer remove and it came saying something about it not being required by composer.json so it ignored it. Removed it directly from composer.json and ran composer update and while I can't find any code references, no matter how many times I rebuild your menu items and info are still pulling up in my nova application.

jeremiahsherrill commented 1 year ago

also tried manually removing it from vendor and when running composer update, it just magically reappears

adammparker commented 1 year ago

Hey @jeremiahsherrill, that doesn't seem like it's a problem directly with the package I would say? I can try and replicate myself when I have some time, but did you try running composer dump-autoload?

jeremiahsherrill commented 1 year ago

Now I get

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

In ProviderRepository.php line 208:

Class "KirschbaumDevelopment\NovaMail\NovaMailServiceProvider" not found

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

jeremiahsherrill commented 1 year ago

had to composer require it back in...

jeremiahsherrill commented 1 year ago

where is this getting added to, I added it back to fix, but it's not going in my composer.json file so of course composer.json can't remove it.

adammparker commented 1 year ago

It sounds like it's cached in something like autoload_classmap or autoload_static potentially (you can find these files in vendor/composer typically).