nova-mail icon indicating copy to clipboard operation
nova-mail copied to clipboard

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

Open jeremiahsherrill opened this issue 2 years ago • 6 comments

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 avatar Dec 14 '22 22:12 jeremiahsherrill

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

jeremiahsherrill avatar Dec 14 '22 22:12 jeremiahsherrill

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?

adammparker avatar Dec 14 '22 22:12 adammparker

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 avatar Dec 14 '22 22:12 jeremiahsherrill

had to composer require it back in...

jeremiahsherrill avatar Dec 14 '22 22:12 jeremiahsherrill

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.

jeremiahsherrill avatar Dec 14 '22 22:12 jeremiahsherrill

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

adammparker avatar Dec 14 '22 23:12 adammparker