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

Cannot install package autoload issue #11

Open
nicolasvahidzein opened this issue Sep 7, 2021 · 1 comment
Open

Cannot install package autoload issue #11

nicolasvahidzein opened this issue Sep 7, 2021 · 1 comment

Comments

@nicolasvahidzein
Copy link

Generating optimized autoload files
Class Sayeed\CustomMigrate\Commands\CustomMigrateCommand located in E:/Laravel/ZeinTek/merlin-backend-0002/vendor/sayeed/custom-migrate/src\Console\Commands\CustomMigrateCommand.php does not comply with psr-4 autoloading standard. Skipping.
Class Sayeed\CustomMigrate\App\Console\Kernel located in E:/Laravel/ZeinTek/merlin-backend-0002/vendor/sayeed/custom-migrate/src\Console\Kernel.php does not comply with psr-4 autoloading standard. Skipping.
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi

Illuminate\Contracts\Container\BindingResolutionException

Target class [Sayeed\CustomMigrate\Commands\CustomMigrateCommand] does not exist.

at E:\Laravel\ZeinTek\merlin-backend-0002\vendor\laravel\framework\src\Illuminate\Container\Container.php:875
871▕
872▕ try {
873▕ $reflector = new ReflectionClass($concrete);
874▕ } catch (ReflectionException $e) {
➜ 875▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
876▕ }
877▕
878▕ // If the type is not instantiable, the developer is attempting to resolve
879▕ // an abstract type such as an Interface or Abstract Class and there is

1 E:\Laravel\ZeinTek\merlin-backend-0002\vendor\laravel\framework\src\Illuminate\Container\Container.php:873
ReflectionException::("Class Sayeed\CustomMigrate\Commands\CustomMigrateCommand does not exist")

2 E:\Laravel\ZeinTek\merlin-backend-0002\vendor\laravel\framework\src\Illuminate\Container\Container.php:873
ReflectionClass::__construct("Sayeed\CustomMigrate\Commands\CustomMigrateCommand")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.

@PatrickNthiwa
Copy link

Hi dev,
Were you able to correct the error?
am facing the same issue here

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

No branches or pull requests

2 participants