browser-detect icon indicating copy to clipboard operation
browser-detect copied to clipboard

Class "Spyc" not found error

Open tanero opened this issue 1 year ago • 7 comments

When I wanto call Browser facade methods, I get the below error.

image

tanero avatar Mar 07 '24 15:03 tanero

Can confirm this on version 5.0.3 running on php 8.2. We get the same error, it worked just fine before upgrading to PHP 8.2 (from PHP 8.1)

The error happens in our views, wherever the code Browser::isDesktop() is called, for example

pixelplant avatar Mar 07 '24 16:03 pixelplant

might be linked to this recent issue: https://github.com/mustangostang/spyc/issues/90

pixelplant avatar Mar 07 '24 16:03 pixelplant

seems to have been linked to the retag issue on the above package. after a retry it works now

pixelplant avatar Mar 07 '24 16:03 pixelplant

@pixelplant what do you mean with "after a retry" I have the same issue but a retry does not help. also composer du does not help either

artem-schander avatar Mar 07 '24 17:03 artem-schander

The same here , laravel 9 & php 8.1 Did you find a solution ?

ramyelsabahy avatar Mar 07 '24 19:03 ramyelsabahy

This was a packagist issue that has now been resolved.

roborourke avatar Mar 07 '24 21:03 roborourke

@pixelplant what do you mean with "after a retry" I have the same issue but a retry does not help. also composer du does not help either

Sorry I wasn't clear about it, by retry I meant removing the composer.lock and the vendor folder and just doing another composer install. It seems they retagged the latest version of mustangostang/spyc package and that fixed the issue

pixelplant avatar Mar 08 '24 06:03 pixelplant

This problem seems to be fixed for now. After the composer update process, a new package was installed from the packagist repo and the library started to work without any problem.

tanero avatar Mar 10 '24 10:03 tanero