Monday, January 31, 2022

[FIXED] getting error after checkout a new branch in Laravel

Issue

I am working on Laravel project. I checkout new branch and it gives error " Symfony \ Component \ Debug \ Exception \ FatalErrorException

Class 'Pimple' not found " it display the error file as 'elasticsearch/elasticsearch/src/Elasticsearch/Common/DICBuilder.php' I run composer update,composer self-update and composer dumpautoload and it wasn't help. Can anyone help me?


Solution

Remove dir vendor/elasticsearch and then run composer update. If you still get error, then package elasticsearch/elasticsearch is broken. You can remove package from your project in composer.json.



Answered By - Mateusz Nowak

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.