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

Laravel Package Discovery Problem with Custom Theme on Production System #257

Open
vorsprungRene opened this issue Dec 27, 2020 · 0 comments

Comments

@vorsprungRene
Copy link

Hi,
I'm facing a strange problem working with LaRecipe custom theme. When deploying to my production system (centos 8) with composer v 2.0.8, my laravel package discovery always fails with a class not found exeception:


  at /var/www/html/intralean/larecipe-components/StandartLight/src/ThemeServiceProvider.php:17
    13|      * @return void
    14|      */
    15|     public function boot()
    16|     {
  > 17|         LaRecipe::style('standart-light', __DIR__.'/../resources/css/theme.css');
    18|     }
    19| 
    20|     /**
    21|      * Register any application services.

  Exception trace:

  1   Intralean\StandartLight\ThemeServiceProvider::boot()
      /var/www/html/intralean/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36

  2   Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
      /var/www/html/intralean/vendor/laravel/framework/src/Illuminate/Container/Util.php:37

  Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Interestingly, when I downgrade my composer to 1.10.0, everything works fine. Moreover, on my local mac, I have no troubles using the latest composer version.

Do you have any idea?

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