I’m a beginner in Laravel, I have installed Laravel Excel packeage in my project successfully. but, there is a problem appear with the package, when I run composer update
it shows this error:
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing markbaker/complex (2.0.0): Extracting archive
- Installing ezyang/htmlpurifier (v4.13.0): Extracting archive
Generating optimized autoload files
IlluminateFoundationComposerScripts::postAutoloadDump
PHP Warning: Uncaught ErrorException: require(D:projectsmy_projectvendorcomposer/../markbaker/complex/classes/src/functions/abs.php): failed to open stream: No such file or directory in D:projectsmy_projectvendorcomposerautoload_real.php:71
Stack trace:
#0 D:projectsmy_projectvendorcomposerautoload_real.php(71): ComposerUtilErrorHandler::handle(2, ‘require(C:User…’, ‘C:UsersMukhta…’, 71, Array)
#1 D:projectsmy_projectvendorcomposerautoload_real.php(71): require()
#2 D:projectsmy_projectvendorcomposerautoload_real.php(61): composerRequiredc8412b933c3488a0bbfad0ab059a147(‘abede361264e2ae…’, ‘C:UsersMukhta…’)
#3 D:projectsmy_projectvendorautoload.php(7): ComposerAutoloaderInitdc8412b933c3488a0bbfad0ab059a147::getLoader()
#4 in D:projectsmy_projectvendorcomposerautoload_real.php on line 71
Warning: Uncaught ErrorException: require(D:projectsmy_projectvendorcomposer/../markbaker/complex/classes/src/functions/abs.php): failed to open stream: No such file or directory in D:projectsmy_projectvendorcomposerautoload_real.php:71
Stack trace:
#0 D:projectsmy_projectvendorcomposerautoload_real.php(71): ComposerUtilErrorHandler::handle(2, ‘require(C:User…’, ‘D:projectsmy_project…’, 71, Array)
#1 D:projectsmy_projectvendorcomposerautoload_real.php(71): require()
#2 D:projectsmy_projectvendorcomposerautoload_real.php(61): composerRequiredc8412b933c3488a0bbfad0ab059a147(‘abede361264e2ae…’, ‘D:projectsmy_project…’)
#3 D:projectsmy_projectvendorautoload.php(7): ComposerAutoloaderInitdc8412b933c3488a0bbfad0ab059a147::getLoader()
#4 in D:projectsmy_projectvendorcomposerautoload_real.php on line 71
PHP Fatal error: composerRequiredc8412b933c3488a0bbfad0ab059a147(): Failed opening required ‘D:projectsmy_projectvendorcomposer/../markbaker/complex/classes/src/functions/abs.php’ (include_path=’C:xamppphpPEAR’) in D:projectsmy_projectvendorcomposerautoload_real.php on line 71
Fatal error: composerRequiredc8412b933c3488a0bbfad0ab059a147(): Failed opening required ‘D:projectsmy_projectvendorcomposer/../markbaker/complex/classes/src/functions/abs.php’ (include_path=’C:xamppphpPEAR’) in D:projectsmy_projectvendorcomposerautoload_real.php on line 71
I know the problem with this package (markbaker/complex) but I can’t solve this issue. Any Help?
php & laravel versions:
PHP 7.3.27
Laravel Framework 8.37.0
2
Answers
From the looks of things, there is a missing file. This is highlighted on this line
./markbaker/complex/classes/src/functions/abs.php):
I would recommend you rundump-autoload
to clear the classes ,then runcomposer install
.Possibly the package’s missing files will be added.I was able to fix this issue by:
rm -rf vendor/* && composer install