Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jeremiahsherrill opened this issue Dec 14, 2022 · 6 comments
Labels
question Further information is requested

Comments

@jeremiahsherrill
Copy link

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
Copy link
Author

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

@adammparker adammparker added the question Further information is requested label Dec 14, 2022
@adammparker
Copy link
Member

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
Copy link
Author

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
Copy link
Author

had to composer require it back in...

@jeremiahsherrill
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants