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

installation error #5

Open
chrisoprea opened this issue Jun 4, 2024 · 0 comments
Open

installation error #5

chrisoprea opened this issue Jun 4, 2024 · 0 comments

Comments

@chrisoprea
Copy link

I encountered an error when attempting to install the abdelhamiderrahmouni/shopper-framework package. The installation process completes without any issues, but during the autoload dump, I receive an error indicating that the Spatie\LaravelPackageTools\PackageServiceProvider class is not found.

Steps to Reproduce:

  1. Run composer require abdelhamiderrahmouni/shopper-framework -W
  2. Observe the output

Expected Result:
The package should be installed successfully without any errors, and the ShopperServiceProvider should be properly registered.

Actual Result:
The installation process completes, but the following error is encountered during the autoload dump:

In ShopperServiceProvider.php line 29:
                                                                       
  Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found  

Composer Output:

composer require abdelhamiderrahmouni/shopper-framework -W
./composer.json has been updated
Running composer update abdelhamiderrahmouni/shopper-framework --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files

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

In ShopperServiceProvider.php line 29:
                                                                       
  Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found  

Environment:

  • PHP version: 8.2
  • Laravel version: 10.48
  • Shopper v2.0.0-beta8

Additional Information:
I attempted to manually install spatie/laravel-package-tools, but it led to a series of dependency requests for other packages in a specific order. This indicates a potential issue with the dependency resolution in the composer.json of the shopper-framework package.

Manual Installation Attempt:
When trying to install spatie/laravel-package-tools manually, Composer requested additional packages in the following order:

  1. composer require spatie/laravel-package-tools
  2. composer require [next-package]
  3. ...

2024-06-04 в 22 11 14
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

1 participant